Popular Posts
Translating 1.3 <html> <head>     <title>Translating 1.1</title>     <meta http-equiv="content-type" content="text... DateTime package bruce.lib; import java.io.Serializable; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Arrays... Translating 2.0 <html> <head>     <title>Translation 2.0</title>     <meta http-equiv="content-type" content="text...
Stats
Flow control : if / case
if ... elseif ... else ... endif
data AGE type I value '12'.

if AGE < 0.
  write 'Illegal value'.
elseif AGE >= 0 and AGE < 18.
  write 'Sorry, this is adult only.'.
else.
  write 'Hi, wellcome.'.
endif.
case ... when .... when others ... endcase
data S(2) value 'F'.

case S.                      " case sensitive
  when 'F'.
    write / 'Hi, girl.'.
  when 'M'.
    write / 'Hi, boy.'.
  when others.
    write / 'Who it is?'.
endcase.