+18
Planned

Toggle button

ahmad alnems 8 years ago in Applications / i3 Pro updated by Ilya Markov (expert) 7 years ago 7

Could you please do that in i3 pro

Temporarily you can use a simple script

function trigger_var()
{
(IR.GetVariable("Global.inp")) ?
IR.SetVariable("Global.out", IR.GetVariable("Global.value1")) :
IR.SetVariable("Global.out", IR.GetVariable("Global.value0"));
IR.Log(IR.GetVariable("Global.out"));
}

(use also "Save To Gallery")

+1

for the command with syntax that you like

function trigger_var()
{
//only one string in single quotes is allowed
IR.SetVariable("Global.out", 
((IR.GetVariable("Global.inp")) ? IR.GetVariable("Global.value1") : IR.GetVariable("Global.value0"))
.replace(/[0-9]+(?![^']*')/g, String.fromCharCode) //convert numbers to Char
.replace(/[, ]+(?![^']*')/g,'') //remove commas 
.replace(/\'(?!\')/g,''));  //'//remove single quotes, use double single quotes to escape
};

how many vote do you need to proceed ?

I don't know, maybe 10 - 15

+2

Shall we go on ?

Planned

ok, we will do it in future