state 0;

effect {
    if(SOURCE == R) {
        STATE = STATE + |LEFT|;
    }
}

combine {
    STATE = STATE + LSTATE + RSTATE;
}