SURVO MM Help System (web edition)

Several alternatives can be processed simultaneously by a 'switch'
statement:
Assume that current weekday has been obtained in W1 as one of the
abbreviations Sun,Mon,...  The following part of a sucro writes
a proper sentence 'Today is Sunday.', etc.

Example:
 11 *Today is
 12 - switch W1
 13 -   case Sun: goto Sun
 14 -   case Mon: goto Mon
 15 -   case Tue: goto Tue
 16 -   case Wed: goto Wed
 17 -   case Thu: goto Thu
 18 -   case Fri: goto Fri
 19 -   case Sat: goto Sat
 20 + Sun:  Sunday{goto End}
 21 + Mon:  Monday{goto End}
 22 + Tue:  Tuesday{goto End}
 23 + Wed:  Wednesday{goto End}
 23 + Thu:  Thursday{goto End}
 25 + Fri:  Friday{goto End}
 26 + Sat:  Saturday{goto End}
 27 + End: .{end}

   S = More information on conditional statements 
   C = Code words and statements in sucros 


More information on Survo from www.survo.fi
Copyright © Survo Systems 2001-2012.
webmaster'at'survo.fi