Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Question about [IF...][/IF]



******    message to minivend-users from Ed LaFrance <edl@newmediaems.com>     ******

Fred -

You syntax is a little off.  You may want to try:

[if type=scratch term=subcat op=ne compare="[scratch lastcat]"]
...
[/if]

  -- or ---

[if type=explicit compare="[calc]'[scatch subcat]' ne '[scratch 
lastcat]'[/calc]"]
...
[/if]

..I am not sure about the second one, because I normally only do it with 
numeric comparisons, but I hope you get the idea.

- Ed L.

At 09:48 PM 10/16/00 -0400, you wrote:
>Hi everyone, I am using MiniVend 4.0 and I am having troubles performing a 
>simple IF command.
>
>Is it possible to compare two scratch variables in an IF? The 
>documentation is unclear wether you can or not. here is an example:
>
>[seti subcat]one[/seti]
>[seti lastcat]one[/seti]
>[if scratch subcat ne scratch lastcat]
>   <p>No Match
>[/if]
>
>[seti subcat]one[/seti]
>[seti lastcat]two[/seti]
>[if scratch subcat ne scratch lastcat]
>   <p>No Match
>[/if]
>
>
>When I run the above code it prints No Match twice when it should only 
>print it once. Do I have the syntax wrong? Any help would be greatly 
>appreciated, thanks!!!!!!
>
>Fred.

 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          edl@newmediaems.com
Placerville, CA  95667         http://www.newmediaems.com
(530) 622-9421                 (530) 622-9426 fax
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

-
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


Search for: Match: Format: Sort by: