JavaLikeCalc.JavaScript
for(ev_rez = "", off = 0; (ev_cur=event.parseLine(0,off)).length; )
    if(ev_cur == "ws_BtPress:/bt1") bt1_color = (bt1_color=="red") ? "green" : "red";
    else ev_rez += (ev_cur+"\n");
event = ev_rez;

line3_value += 0.1;