@Array SigilExpand values as an array
The array token is used to tell Murex to expand the string as multiple parameters (an array) rather than as a single parameter string.
» $example = "foobar"
» out $example
foobar
Variable names can be non-ASCII however they have to be surrounded by parenthesis. eg
» $(比如) = "举手之劳就可以使办公室更加环保,比如,使用再生纸。"
» out $(比如)
举手之劳就可以使办公室更加环保,比如,使用再生纸。
Sometimes you need to denote the end of a variable and have text follow on:
» $partial_word = "orl"
» out "Hello w$(partial_word)d!"
Hello world!
Please note the new line (\n) character. This is not
split using $:
» $example = "foo\nbar"
Output as a scalar ($):
» out $example
foo
bar
Output as an array (@):
» out @example
foo bar
Scalar:
» out ${ %[Mon..Fri] }
["Mon","Tue","Wed","Thu","Fri"]
Array:
» out @{ %[Mon..Fri] }
Mon Tue Wed Thu Fri
outwill take an array and output each element, space delimited. Exactly the same howechowould in Bash.
If a variable is used as a commend then Murex will just print the content of that variable.
» $example = "Hello World!"
» $example
Hello World!
Since arrays are expanded over multiple parameters, you cannot expand an array inside quoted strings like you can with a string variable:
» out "foo ${ ja [1..5] } bar"
foo ["1","2","3","4","5"] bar
» out "foo @{ ja [1..5] } bar"
foo 1 2 3 4 5 bar
» %(${ ja [1..5] })
["1","2","3","4","5"]
» %(@{ ja: [1..5] })
@{ ja [1..5] }
ja:
A sophisticated yet simply way to build a JSON arrayset:
Define a variable (typically local) and set it’s valueout: Print a string to the stdout with a trailing new
line character"Double Quote":
Initiates or terminates a string (variables expanded)%(Brace Quote):
Initiates or terminates a string (variables expanded)'Single Quote':
Initiates or terminates a string (variables not expanded)(brace quote):
Write a string to the stdout without new line (deprecated)string (stringing):
string (primitive)~ Home Sigil: Home
directory path variableThis document was generated from gen/parser/variables_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.
Last built on Fri Oct 24 08:59:31 UTC 2025 against commit e59ab49e59ab49e1628d8546d2ad8ce5eb1150445f6a940.
Current version is 7.1.4143 (unknown) which has been verified against tests cases.