Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to use 'and' in an unless macro?

I am trying to say unless 4 variables are set to 1 then []
so my ideas were simply seperating them with a comma or an and sign, neither work.
(unless: $1stat and $2stat is 1)[]

(unless: $1stat, $2stat, is 1)[]
How do i do this correctly?

Comments

  • The problem is it's not possible to compare multiple values to a single value in either (unless:) or (if:) macros using and. This means that to do what you want you need to write out the full condition on either side of the and.
    (unless: $1stat is 1 and $2stat is 1)[]
    

    will work.
Sign In or Register to comment.