• IF doesn't work while testing string containing ampersand. I know ampersand is logical operator in some languages so it can occur the problem. Klaus is it possible to test such strings?

  • Hi,

    the problem here is the '=' character.

    The %NN is only a placeholder for the parameters, that means before the code will be executed the %NN tags will be replaced by the contents of the parameters. So a result there will be an if() with an additional '=' character and this character will be parsed as 'syntax-character' and so the resulting syntax parsing of the if condition fails.

    A workaround for this situation would be first assigning the parameter to a variable and then using this variable in the if,
    e.g.

    Code
    set(test, %3);
    if(test == ..., ...);
    ...

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!