View Single Post
Old 02-03-2005, 10:49 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
It might be possible. Startup 2.5 and check the value of the following in the interactive window:
It should point to "C:\Program Files\Vizard25" or wherever you installed 2.5

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:
x = [z,y][isBoolean]
Otherwise you could create your own function:
def ifelse(boolean,trueVal,falseVal):
	if boolean:
		return trueVal
	return falseVal

x = ifelse(isBoolean,y,z)
Reply With Quote