Double Nested If Statements

About advanced scenes, and the Thyme scripting language used in Algodoo.

Double Nested If Statements

Postby blahblah200 » Sun Sep 20, 2009 10:41 am

I was wondering if you could do this:

if {then} : {if {then} : {if {then} : {else}}}

And I was also wondering how many you could go up to!
Thanks in advance :thumbup:
Image<-- Made with GIMP
User avatar
blahblah200
 
Posts: 61
Joined: Tue Sep 01, 2009 11:33 am
Location: Somewhere over the rainbow...

Re: Double Nested If Statements

Postby gradyfitz » Sun Sep 20, 2009 12:30 pm

blahblah200 wrote:I was wondering if you could do this:

if {then} : {if {then} : {if {then} : {else}}}

And I was also wondering how many you could go up to!
Thanks in advance :thumbup:

Yes, definitely, and the answer to that question is 50 :D.

The limit exists to prevent abuse of the system (50 should really be enough for any question :D).
Mechanisms: 18 Mechanisms.
Thyme: Tutorial - Variables/Commands List.
Thymechanic
gradyfitz
 
Posts: 174
Joined: Tue Sep 01, 2009 8:33 am
Location: Victoria, Australia

Re: Double Nested If Statements

Postby Sniperkasa » Sun Sep 20, 2009 2:07 pm

I've found this kind of useful, even though I have'nt needed more then 23 so far.. 50 should be more then enough :)
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: Double Nested If Statements

Postby blahblah200 » Sun Sep 20, 2009 2:08 pm

I think 23 is enough !! :lol: :lol:
Image<-- Made with GIMP
User avatar
blahblah200
 
Posts: 61
Joined: Tue Sep 01, 2009 11:33 am
Location: Somewhere over the rainbow...


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron