Generate and number and use if statement

Hi I’m trying to make kantu generate a random number and based on the number generated do something using if statement. For some reasons it always says that 1 was generated.

“Commands”: [
{
“Command”: “storeEval”,
“Target”: “Math.floor(Math.random()*4)”,
“Value”: “x”
},
{
“Command”: “if”,
“Target”: “x=1”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “hola”,
“Value”: “blue”
},
{
“Command”: “endif”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “if”,
“Target”: “x=0”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “hola”,
“Value”: “red”
},
{
“Command”: “endif”,
“Target”: “”,
“Value”: “”
}
]
}s

I suggest you to look up some demo macros at least to get the idea of Kantu basics.

tl;dr:

if | “${x}”==“1”|