If statements in designscript are fairly straightforward.

Test ? True: False;

Where

Test is a comparison returning a true/false.

True is the desired result if the Boolean test returns true.

False is the result if the Boolean test returns false.

The ? marks the end of the test.

The : marks the end of the true.

The ; ends the line of code.

An example:

Math.Ceiling(a/2) == A/2?

“This is a even number”:

“This is an odd number”;

Feed in 2 and you’ll divide 2 by 2 and round up to 1, which will equal to 2 divided by two, so your output will be “this is an even number”. Feed in 3 and the math.ceiling function will round 3/2 up to 2 which isn’t equal to 3/2, so your result will return “This is an

odd number”.

You can nest these, but make sure you have the correct format. This gets a bit tough to do from memory, but this should give you an idea to play with:

Test1 ?

Test2OnlyIfTest1True ?

Test2True :

Test2False :

Test3IfTest1False ?

Test3True :

Test3False ;