Originally Posted by
kmelchor
Please help. I have a schedule in which I want to show a particular property set field, conditional upon x equaling (whatever).
This works:
X=0
If [DOOR-OBJECTS:TEST]=True
Then X="test words"
Else X="alternate words"
RESULT=X
Either "test words" or "alternate words" will show up in the schedule, according to the criteria.
It also works if I use numbers instead of text.
HOWEVER,
If I add the actual fields as below, the formula doesn't work. (The formula is shown in the schedule, and not the result.)
X=0
If [DOOR-OBJECTS:TEST]=True
Then X=[DOOR-OBJECTS:SwingDirection]
Else X=[DOOR-OBJECTS:SwingDirection-Reverse]
RESULT=X
I wonder if it has something to do with the data type of the variable? I'm really not that familiar with vb scripting.
Thanks for any suggestions,