ROPE Language Reference - "unless"

The "unless" action executes a block of commands if a specified condition is not true. The syntax is one of..

 condition { block } unless
 unless( condition { block } )

For example..

unless( $a 29 eq { println( "Not twenty nine" ) } )
unless( $ip_proto 6 ne { no } )
tcp_source 80 eq { no } unless

The block is executed if the condition is zero or an empty string.

See Also

if, ifelse, while, until