Config Variable Equal to

Funny how some things seem to fall through the cracks. When I first did a search on this no one seemed to be able to tell me how to do it. I eventually dug it up in a cfg file from an old build. 

What I'm talking about if the ability to use '%if' over '%if defined' or '%if exists'. There are occasions where I want to trigger something if a variable equals a certain value.

The way to do it is:

%if $(<variable>) == <value>
<do something like set a config value or override a variable value>
%endif

Sounds silly, but is a great way to set some triggers for discipline, group etc. I use this for my admin groups so they have the ability to create levels where as regular users don't.

Something like:

%if $(user_group) == "admin"
_USTN_CAPABILITY < +CAPABILITY_LEVELS_CREATE
%endif

More soon.

Anonymous