The tutorials explain very easily how to use a single variable value to hide or reveal text on a page. For example,
%%VARIABLE%=%1%insert variable dependent text here%%.
But is it possible to have a single block of text that depends on two variables using this technique (or something similar)?
For example, if you have VARIABLE1 and VARIABLE2, I'm looking for something like
VARIABLE1%=%1% AND VARIABLE2%=%1%
and then all the text would follow.
I'm hoping for a simple on page variable trick. So far, the only solution I can think of is to have a script relating VARIABLE1 and VARIABLE2 to VARIABLE3, and the statement in the page script
IF %VARIABLE1 = 1 AND %VARIABLE2 = 1, THEN %VARIABLE3 := 1
, and then use
%%VARIABLE3%=%1%insert variable dependent text%%.
So is there some easy way to do this on page without using a third variable?
Although, now that I think about it, the solution in this post might work fine. But I think it might be a bit clunkier. If there is no other way I'll live, but it would be cool if we could use AND and OR statements and the like with on page scripting.