![]() |
#10
|
|||
|
|||
It might be possible. Startup 2.5 and check the value of the following in the interactive window:
Code:
viz._WIN_VIZ_PATH Python doesn't support the one line if/else. If you can guarentee that the value of the boolean will always be either 0 or 1 you could do the following: Code:
x = [z,y][isBoolean] Code:
def ifelse(boolean,trueVal,falseVal): if boolean: return trueVal return falseVal x = ifelse(isBoolean,y,z) |
|
|