Added the option to add default values in case none is given in the prompt.
For example {{value:MyVariable|SomeValue}}
Will be "SomeValue" if nothing is given in the prompt.
This should solve #264, with a different syntax. My idea is having something similar to other languages that short-circuit evaluation for OR. For example in Js console.log(MyVariable||"SomeValue") prints "SomeValue" if MyVariable is undefined.
Added the option to add default values in case none is given in the prompt.
For example {{value:MyVariable|SomeValue}}
Will be "SomeValue" if nothing is given in the prompt.
This should solve #264, with a different syntax. My idea is having something similar to other languages that short-circuit evaluation for OR. For example in Js
console.log(MyVariable||"SomeValue")
prints "SomeValue" if MyVariable is undefined.