Feb 2009 -- Due to time pressures, the ongoing development of 'rope' has been suspended temporarily.

ROPE Language Reference - "if"

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

 condition { block } if
 if( condition { block } )

For example..

if( $a 29 eq { println( "Twenty nine" ) } )
if( $ip_proto 6 ne { no } )
tcp_source 80 eq { yes } if

The block is executed if the condition is a non-zero integer or a non-empty string.

See Also

ifelse, unless, while, until