Platform Builder Forums

Main => Suggestions => Topic started by: Antikore on July 07, 2019, 02:43:31 PM

Title: Conditionals inside conditionals
Post by: Antikore on July 07, 2019, 02:43:31 PM
I know this can be hard, but I think it's really necessary for Platform Builder.
Title: Re: Conditionals inside conditionals
Post by: CGM on July 08, 2019, 04:16:56 PM
What would be the point of this?
Title: Re: Conditionals inside conditionals
Post by: Antikore on July 09, 2019, 01:37:15 PM
Imagine you want to check if the player is doing something, if it does, execute some commands, and you want to check also for an item when it's doing something. Idk, it's like normal programming do and works.
Title: Re: Conditionals inside conditionals
Post by: War on July 09, 2019, 01:44:46 PM
Good idea !
Title: Re: Conditionals inside conditionals
Post by: CGM on July 09, 2019, 05:45:50 PM
Can't you just either A: Add a new conditional below or above the conditional, or B: Have it check for both things?

EG
if player 1=skidding & item 1 >1
{
xyz
}
I don't think we need conditionals inside conditionals.
Title: Re: Conditionals inside conditionals
Post by: Antikore on July 09, 2019, 06:10:36 PM
Let's show you an example of how it will enhance the Command Prompt.

MCreator is a program to create mods for Minecraft, it's just like a normal programming language but with blocks like scratch or app inventor. This is from my mod, it's not the better example, but it's a crate that generates a random weapon in 50% chance, the other 50% it will generate a random amount of coal. There is some if inside if
(https://i.ibb.co/YbwZzD3/image.png) (https://imgbb.com/)

In my games in PB, I commonly use timelines as a substitute for putting conditionals inside other conditionals, that is somehow bad and a good programming language needs this.

I will do also a new suggestion here:
"Else if" statement for conditionals.
Title: Re: Conditionals inside conditionals
Post by: CGM on July 09, 2019, 06:13:23 PM
Okay.
Title: Re: Conditionals inside conditionals
Post by: CGM on July 09, 2019, 08:22:52 PM
I just ran across a situation where I NEED this!
Title: Re: Conditionals inside conditionals
Post by: War on July 10, 2019, 04:54:31 PM
I just ran across a situation where I NEED this!
(https://i.ibb.co/DW7F6yr/captain-picard-facepalm.jpg) (https://imgbb.com/)