[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Can Anyone Get [if] to work in this case?
****** message to minivend-users from "John C. Beima" <jbeima@palb.com> ******
G'Day Folks,
I need to be able to do some conditional code, based on the content of a field
in one of my database.
Right now pulling the filed out based on this works great.
[data base="store" field="pg_[scratch page]_des" key="[scratch outlet]"]
What I am trying to do is do two different checks on the database to see if
some things sshould be displayed.
But the [if data] doesn't seem to work with scratch variables. so if you go:
[if data base="store" field="pg_[scratch page]_hd" key="[scratch outlet]" ==
1]
or
[if data base="store" field="pg_[scratch page]_hd" key="[scratch outlet]" ==
1]
Nothing happens.
Now if you go [if data store::pg_1_hd::100ADM == 1]
It works.
However [if data store::pg_[scratch page]_hd::[scratch outlet]] it doesn't.
I have tried surrounding the scratch variables with quotes and inserting the
interpolation=1, neither works. I have also tried different variations of [if
explicit] as well, to no luck.
Any ideas?
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list