Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
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.
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]