Skip to Content
0
Jan 12, 2023 at 06:24 PM

can't check a Char in UDF

40 Views Last edit Jan 12, 2023 at 06:30 PM 5 rev

Hi All

I want to check weather a char is a "\" [backslash].

char previousChar = 0;<br>if (previousChar != '\\') {<br>//do something<br>}

It works with Visual Studio Code (newest Java version)

But in the UDF everything after the " ' " appears blue.

I tried '\' or "\\" or "\" but nothing worked.