I’ve created a global variable in Expression Engine to be able to switch to a testing mode for a site I am testing. The global variable is called ‘test-mode’ and the content is the word ‘true’. But it is not working in an if statement.
{if test-mode == "true"}hello world{/if}
EE doesn’t show the “hello world” text. If I do this:
{test-mode}
It shows “true”. I can’t figure out why it’s not working…