OK, I thought I could use the "if" statement to say the following: (if userdimscale 15.0 (setvar dimscale 6.0)), in english, if userdimscale equals 15.0 then set dimscale to 6.0. so, what's wrong with that it doesn't work?
Solved! Go to Solution.
Solved by delliston. Go to Solution.
Solved by dgorsman. Go to Solution.
I'm not seeing a comparison operation in there...
(if ...) takes one comparison expression, one "if true" expression, and one "if false" expression:
(if (= 15.0 some_number) (foo_true) (foo_false) )
@Anonymous wrote:
OOPS, forgot the = sign
... as well as the parentheses enclosing the (=) function, and either an apostrophe ' preceding, or two double-quotes " surrounding, the System Variable name. [I assume you also got those corrected, but just for the sake of anyone else looking around....]
(if (= userdimscale 15.0) (setvar 'dimscale 6.0))