Menu

If...EndIf weirdness

Bryan Chow
2020-06-17
2020-06-17
  • Bryan Chow

    Bryan Chow - 2020-06-17

    The code below does not work as expected (changing the value of REW should mute L/R respectively). Can someone tell me why? Or does it work correctly for you?

    EVAL: REW=1
    
    If: REW==0
    Copy: L=0
    EndIf:
    
    If: REW==1
    Copy: R=0
    EndIf:
    
     
    • Juha

      Juha - 2020-06-17

      Have you tried Eval: instead of EVAL: to be sure it's not synthax issue in question.

       
      • Bryan Chow

        Bryan Chow - 2020-06-17

        I knew I needed someone else with a clearer head to take a look. Yes that was the error, how embarrassing.

         
  • Peter Verbeek

    Peter Verbeek - 2020-06-17

    If I'm not mistake it should be:

    Eval: REW = 1
    If: `REW` == 0
    Copy: L=0
    EndIf:
    If: `REW` == 1
    Copy: R=0
    EndIf:
    

    So spaces in the Eval command and backtick (not a quote) surrounding REW.

     

Log in to post a comment.