Check if mangle rule is enabled?

Hi, how can i check if a mangle rule is enabled or disabled using scripting?

Ok i found the answer:

:local chkenabled

:set chkenabled [/ ip firewall mangle get number=1 disabled]
if($chkenabled) do={
# Rule is disabled
} else={
# Rule is enabled
}

To make it easier to find a mangle rule than via the number you can use this instead and find it by a comment, or really any of the set attributes of the rule(s):

:set chkenabled [/ ip firewall mangle find [comment="your comment"] disabled]