Message 1 of 5
Not applicable
09-12-2014
03:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello friends, here I am with noob questions again.
My need is simple: I want to switch controllers in a list on or off using a custom attribute with a boolean checkbox.
If I debug the float script, i can see that switch (my variable) evaluates to true or false.
So what I'm trying is:
if switch = true then 1.0 else if switch = false then 0.0 else switch
The script evaluates to 0.0 no matter what the switch is set to.
Why doesn't this work? Thanks in advance for your time.
Solved! Go to Solution.