Warning, file /frameworks/syntax-highlighting/autotests/input/highlight.tcsh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #!/bin/tcsh -f 0002 0003 [ a != b ] && echo a || echo b 0004 # + not an operator 0005 [ 1+2 == '1+2' ] && echo a || echo b 0006 [ 1 != '1+2' ] && echo a || echo b 0007 [ a =~ b ] && echo a || echo b 0008 [ a !~ b ] && echo a || echo b 0009 0010 set a = 1 0011 set b = 2 0012 0013 # arithmetic operators 0014 if ($a < $b) echo 1 0015 if ($a << $b) echo 1 0016 if ($a > $b - 2) echo 1 0017 if ($a + 11 >> $b) echo 1 0018 if ($a <= $b) echo 1 0019 if ($a + 1 >= $b) echo 1 0020 if ($a / $b + 1) echo 1 0021 if ($a % $b) echo 1 0022 if ($a * $b) echo 1 0023 0024 # string operators 0025 if ($a == $b) echo s 0026 if ($a != $b) echo s 0027 if ($a =~ $b) echo s 0028 if ($a !~ $b) echo s 0029 0030 set val = 0 0031 0032 foreach scen ( a b ) 0033 echo $scen 0034 0035 if ($scen == a) then 0036 echo $scen 0037 else if ($scen == x) then 0038 echo x 0039 else 0040 echo $val 0041 endif 0042 end