| when, unless Full Description |   | 
| Syntax action|rule when condition action|rule unless condition Where:
 
 rule
 condition
 Purpose You can use The following rule will fire when "hello" occurs in the data only if "count" is greater than 12:
 find "hello" when count > 12 The following action will be executed unless the variable "name" contains the string "Fred":
 output name unless name = "Fred" 
 do xml-parse document scan my-document output"%c" done unless my-flag This is not particulary readable, however. It will usually be preferable to wrap the structure you want to make conditional in a do when or do unless block:
 do unless my-flag do xml-parse document scan my-document output "%c" done done Note that  |