The ProcScript language is targeted to embedded systems so that it can be easily used inside other programs like Citrix Podio Workflow Automations (GlobiFlow).
ProcScript is a simplified version of PHP and borrows some concepts from JavaScript. It is also extremely forgiving.
Single line comments start with //
and multi-line comments can be enclosed in /*
and */
. Eg
// This is a comment
x = x + 1 //increment x
If you need to return a value to your automation, use the RETURN
command. Eg:
// Multiply by 2
x = [(Variable) foo]
x = x * 2
RETURN x
Keywords are case-insensitive. This means that PRINT "Hello"
is exactly the same as print "Hello"
(but print "heLLo"
is different!).
Variables are completely untyped. You can put any value into any variable.
If a variable has no value, it will return a default of NULL
Arrays are just variables, and objects are just arrays. You can use both PHP and JavaScript formatting to create them, eg:
a1 = ["foo"=>"bar", "baz"=>42]
a2 = {foo:"bar", baz:42}
PRINT ( a1 == a2 )
PRINT a1.foo + " = " + a2["foo"]
The above would output:
TRUE
bar = bar
Note that PRINT
will not output anything when the code is actually run, but it is extremely useful for debugging as this Editor will show output.