Why this algorithm does not work in develop?

Hello

Why this algorithm does not work in develop?

//a variable
string i = sit
if i = sit {
Character.Action=sit;
string i= up
}

if i = up {
Character.Action = up;
string i= run
}

if i = run {
Character.Action=run;
string i = jump
}
if i = jump {
Character.Action = jump;
string i = sit
}




regards,
Saeed

Hi,
Please provide actual screenshots of the events.