PDA

View Full Version : "Setq" but in DIESEL?



TevsR
23rd Oct 2004, 04:14 pm
Who knows, is there possibility to keep a value in DIESEL the same way as usind LISP, something similar to function "Setq"? :idea:

David Bethel
23rd Oct 2004, 06:17 pm
I believe the only option you have is in using the USER (s,r,i) sysvar

setvar;userr1;2.1

and then the diesel getvar function

-David

TevsR
23rd Oct 2004, 07:07 pm
I want to memorise the current meaning of the User.. so that I can compare it to the new one

David Bethel
23rd Oct 2004, 09:42 pm
[Layer Color]^c^c^psetvar;users1;0;$m=$(if,$(eq,$(getvar, users1),$(getvar,clayer)),setvar;cecolor;5,setvar; cecolor;4);^p


Like a simple comparison? -David