Parenthesis in variables inside IF blocks

后端 未结 5 1021
天命终不由人
天命终不由人 2021-02-07 12:12

In one of my scripts, I need to use variables that contain parenthesis inside IF statements, but either the string is missing a closing parenthesis or the script ex

5条回答
  •  太阳男子
    2021-02-07 12:58

    my suggestion is :

    if (condition_TRUE) goto goodbye_parenthesis_BEGIN
    
    goto goodbye_parenthesis_END  ----- line when previous condition is FALSE ----
    :goodbye_parenthesis_BEGIN ----- line when previous condition is TRUE ----
    
    ...
    variable treatment
    ...
    
    :goodbye_parenthesis_END
    

提交回复
热议问题