← 都来码 / Dolaima← 例程索引dbase/school/_out_of_subset/conditional_structures.prg 原文

dbase/school/_out_of_subset/conditional_structures.prg · 174 字节 · 下载原文

IF x == 1
   SomeFunc1()
ELSEIF x == 2
   SomeFunc2()
ELSE
   SomeFunc()
ENDIF

DO CASE
CASE x == 1
   SomeFunc1()
CASE x == 2
   SomeFunc2()
OTHERWISE
   SomeFunc()
ENDCASE