 *** Welcome to SAD Ver.1.4.4.2k64 built at 2026-10-19 14:46:59 +0900 ***
 *** Today: 00:36:00 Tuesday 11/17/2026 ***
 OFF LOG;ON ECHO;READ 77 ;           1
FFS;
 *** SADScript Initialization: /mnt/d/work/SAD-master/SAD-master/Packages/init.n ***
 *** Run time Environment:     /mnt/d/work/SAD-master/SAD-master/Packages/init.local.n ***
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   F     F     F     T     F     F     T     F     F     T     F     T
 h[x_] := Switch[x, 1, "one", 2 | 3, "two-three", _String, "str", _, "other"];
 Print["Switch  ", h /@ {1, 3, "q", 9, 2.5}];
Switch  {"one","two-three","str","other","other"}
 Print["no match ", Switch[9, 1, "one"]];
no match Switch[9]
 Print["Switch string ", Switch["ab", "x", 1, "ab", 2, _, 3]];
Switch string 2
 sw[x_] := Switch[x, _String, "string", _Real, "real", _List, "list", _, "other"];
 Print["by type ", sw["a"], " ", sw[1.5], " ", sw[{1}], " ", sw[f]];
by type string real list other
 Print["Switch pattern variable ", Switch[f[3], f[x_], x*10, _, 0]];
Switch pattern variable (10 x)
 Exit;
Out[1]:= Exit
 FFS                  end:  CPU time =     0.000 sec
 Design orbit length =   1.0000000000000000     
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   T     F     F     T     F     F     T     F     F     T     F     T
 In[2]:=  ???-getbuf-end of input stream
