锴 angry fishtrap 狗 (
kaigou) wrote in
style_system2009-11-17 11:37 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
style system variables
Is it possible to set a variable to be another variable?
That is, instead of:
set color_thing = "#333366";
doing:
set color_thing = $*some_other_thing;
such that the default value of $*color_thing is equal to the value of $*some_other_thing, but with option for user to override?
That is, instead of:
set color_thing = "#333366";
doing:
set color_thing = $*some_other_thing;
such that the default value of $*color_thing is equal to the value of $*some_other_thing, but with option for user to override?
no subject
no subject
if $x = "" { $x = $y } else { $x = $z }
...or something like that. I'm thinking back to the "leave blank for default" discussion elsewhere (per the wizard), and that if the user left the entry blank, then the default would prevail. In which case, the input -- $x -- would be = "" instead of = "user-input".
*ponders*