if and or

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

if and or

Postby Mr_Stabby » Thu Jan 14, 2010 1:07 am

I need to use OR in my if script but i cant find any info on how its represented in thyme, ive tried || and OR but neither work, halp?
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am

Re: if and or

Postby standardtoaster » Thu Jan 14, 2010 1:18 am

You can use either || or math.or. For the most part, I have always had problems using || so I would suggest using math.or. You use it like this, math.or(a compared to b, x compared to y). Do you get it?
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: if and or

Postby Mr_Stabby » Thu Jan 14, 2010 10:38 pm

got it, works prefectly
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 13 guests