Memo for software development
Home
Shell script
CSH/TCSH
"if" statement
Basic useage:
if ( expr ) then
command
else
command-else
endif
The expressions are
-e : exist?
-r : readable?
-w : writable?
-x : executable?
-o : owned?
-d : directrory?
-f : normal file?
-z : zero-filesize
+ - * / % << >> : arithmetic
< > <= >= : comparison (number)
== != : comparison (number, string)
! && || : bool algebra
CERN Root
TString
TObjArray *linetok = line.Tokenize('/');
TString str = ((TObjString*)(linetok->At(0)))->GetString();
Lua
Reference: Programming in Lua (first edition)