Is it possible to evaluate three variables in a conditional statement using or / and? For example, take three variables x, y and z all with preset values so that x = 8, y = 9 and z = 0. Is it possible to write a statment that says evaluate x or y and z. Possible combinations would be x and z or y and z so that if x = 8 and z = 0, alert OK, OR if y = 9 and z = 0, alert OK. I have tried the following without success:
(cond (((or (= x 8)(= y 9) (and (= z 0))) (alert "OK") ); end statement ); end cond
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
And for actual coordinate values,
the '= function is oftern replaced by the 'equal.
For using HMSilva's methods,:
(equal X 8 1e-4)
for 0.0001 th resolution, etc.