Akopia Akopia Services

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

Re: [mv] [if] Dosent work when trying to Check for a field in Databse...



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

Tal -

try:

[if type=data term="database::field::[item-code]" op=eq compare="a"]
Yes
[else]
No
[/else]
[/if]

 --- or you can do

[if explicit][condition]
             return 1 if '[item-field fieldname]' eq 'a';
             [/condition]
Yes
[else]
No
[/else]
[/if]

..depending on the type of search you are doing, the terms may be [loop-
code], [item-data database fieldname], [loop-data ...], etc - but you get 
the idea.

- Ed L.



> ******    message to minivend-users from "Tal Hart (TelNET)" 
<tal@telnet.co.il>     ******
> 
> I am trying to check for a Field in the DB...
> if the field equals 'A' than i wish to output 'YES'
> if it equals "b" i wish to ouput "NO' etc....
> 
> i tried all the [if] methods explained in the manual and couldnt get it to
> work...
> 
> How eaxactly should i format it...
> It is placed within a Search-list....
> 
> Tal Hart
> =============================================================
> TelNET Communication
> Tel # + 972-9-8859919    Fax # +972-9-8859929
> Address : Office - 10 giborey israel, New industrial area,Netanya
> Post Adress : 2 Gur st. , Ramat Poleg , Netanya , ISRAEL , 42000
> E-mail : tal@telnet.co.il           Web : www.telnet.co.il
> =============================================================
> 
> -
> 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
> 
> 
> 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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: