Okay so I'm trying to use two if visited within the same line because I want the conditions to be set up for two visited pages as once. However when I tried to set it up like so
<<if visited ("first condition") ("second condition") <<endif>>
It doesn't work. It just says bad condition. Does anyone know how to fix this so I can use both conditions, if it's possible?
Comments
<<if visited ("first condition") and visited ("second condition")>>Your stuff here. <<endif>>
You can also go
<<if visited ("first condition")>><<if visited ("second condition")>>Your stuff here. <</if>><</if>>
However I just tried this and it didn't work. I'm gonna test it further to see if I'm doing something else wrongI just noticed what I was doing wrong. Thank you for the help. I'm an idiot and code hates me.
<<if visited("first condition") and visited("second condition")>>Your stuff here. <<endif>>
Also the SugarCube documentation recommends another format:
<<if visited("Bar", "Café") is 4>>…has been to both the Bar and Café at least four times…<</if>>
So that could also be for a single visit:
<<if visited("Bar", "Café")>>…has been to both the Bar and Café<</if>>