I’m looking at the EBNF for the Macro API and I think I found a non-compliant but working command.
EBNF for the Macro API
command = "/", command-verb, [ {command-object, ";" } command-object] ]|
command-verb = ? any secure command word ?|
command-object = { condition } parameters|
parameters = ? anything which may be passed to the command word ?|
condition = "[" condition-phrase { "," condition-phrase } "]"|
condition-phrase = ([ "no" ], option-word, [ ":" option-argument { "/" option-argument } ] | "@", target)|
option-argument = ? any one-word option, such as 'shift, 'ctrl', 'target', '1', '2' ?|
target = ? a target pattern ?|
The /run command - I do not think that this will work (the game is coming down or I’d test it myself) - I’m looking for confirmation from someone who might have tried it.
/run [mounted]print("This should only work when mounted");print("This should only work when not mounted")
I might be wrong. It’s never occurred to me to try to use /run like this. I’m hoping it has to someone else.