Help Needed, logical operation.
3 posts • Page 1 of 1
Help Needed, logical operation.
Hi everyone I want to make myself an automatic gearbox and of course I need "if statement". The problem is that I need two or more conditions to be satisfied at the same time. I tried something like :
PS: I have looked over the forum to find a statement with 2 conditions for 1 hour and I couldn't find nothing... Sorry if this had been asked before!
- Code: Select all
scene.my.resv > 55 && scene.my.gear7 = 2 ? {change to next gear..} : {change to previous one..}
PS: I have looked over the forum to find a statement with 2 conditions for 1 hour and I couldn't find nothing... Sorry if this had been asked before!
- RpT
- Posts: 11
- Joined: Sun Oct 02, 2011 4:45 pm
Re: Help Needed, logical operation.
- Code: Select all
scene.my.resv > 55 ? {scene.my.gear7 = 2 ? {change to next gear..} : {change to previous one..} } : {}
Place one if script into another!!
- Code: Select all
<condition1> ? { <condition2> ? {code to next gear}: {Code to previous gear} } : {not used}
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: Help Needed, logical operation.
thank you very much..
Țăranul se uită la pământ și pământul la țăran..dacă are pământ, dacă nu, atunci nu!

- RpT
- Posts: 11
- Joined: Sun Oct 02, 2011 4:45 pm
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests



