- Jun
- 98
- 0
Hello. A small trouble.
I want to show something in color.
Like that
It works fine, doesn't matter if ANSI is enabled or not.
Now let's replace brackets ( ) -> [ ]
Last, closing brace ']' is interpreted as closing bracket of %@If[ ]
Of course, I can use extra variables, containing values of %@If[]'s.
How should it be written in one working line?
I want to show something in color.
Like that
Code:
*Set title=something
*Echo --( %@If[%_ansi==1,^e[1;33m,]%[title]%@If[%_ansi==1,^e[0m,] )--
Now let's replace brackets ( ) -> [ ]
Code:
*Set title=something
*Echo --[ %@If[%_ansi==1,^e[1;33m,]%[title]%@If[%_ansi==1,^e[0m,] ]--
Last, closing brace ']' is interpreted as closing bracket of %@If[ ]
Of course, I can use extra variables, containing values of %@If[]'s.
How should it be written in one working line?