Extra Tokens at end of expression

Homepage Clovertech Forums Read Only Archives Cloverleaf Tcl Library Extra Tokens at end of expression

  • Creator
    Topic
  • #54677
    Robert Denny
    Participant

    Getting this error when attempting to make a more complex if statement.

    ‘syntax error in expression “[cequal $pv1_31_1 $emr] $$ [cequal $pv1_3ed $ed]”: extra tokens at end of expression’

    Here is my if statement.

          if {[cequal $pv1_31_1 $emr] $$ [cequal $pv1_3ed $ed]} {  

               return “{CONTINUE $mh}”

             } else {

             return “{KILL $mh}”

            }  

       

         }

Viewing 1 reply thread
  • Author
    Replies
    • #82536
      Elisha Gould
      Participant

      What operation are you trying to perform?

      $$ isn’t a valid operator for expressions.

      Logical AND is &&

      Logical OR is ||

    • #82537
      Robert Denny
      Participant

      Thanks that must be it. I the want to  do the and command.

Viewing 1 reply thread
  • The forum ‘Tcl Library’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,448
Topic Tags
288
Empty Topic Tags
10