User`s manual
12. Appendix B – Hydra scripting language definition v1.0
Barco – iStudio – R5976569 – user's manual – revision 09 – March-2007
__________________________________________________________________________________
12-22
12.3.8 Source script
Changing source names
; Set all source names
getsetup "Module"
expr set count 0
:loop
source count
expr + count count 1
string set name "Source"
string + name name count
setsource "name" name
expr < test count 30
goto test loop
setsetup "Module"
12.3.9 String script
Demonstrates some string operations
string set text "hello world!"
output text
string cut hello text 0 4
string cut world text 6 10
string set new world
string + new new " "
string + new new hello
string + new new "."
string length len new
string + new new " ("
string + new new len
string + new new ")"
output new
string = bool len 12
string boolean sbool bool
string = bool2 sbool "true"
string set text bool
string + text text ","
string + text text sbool
string + text text ","
string + text text bool2
output text