I did what I wanted, but had to code it like this:
 
<var-name>test</var-name>
<var-value>((field1 == 'A') or ((field1 == 'B') or (field1 == 'C')))</var-value>
 
rather difficult to read!
 
Regards, Fabio.
 
-----Messaggio originale-----
Da: Grassi Fabio 
Inviato: giovedì 19 febbraio 2004 17:43
A: '[EMAIL PROTECTED]'
Oggetto: validwhen


The validwhen documentation suggests that "only two items may be joined with and or 
or". Does this mean that I could not write a condition like:
 
<var-name>test</var-name>
<var-value>((field1 == 'A') or (field1 == 'B') or (field1 == 'C'))</var-value>
 
Is it this limited? Anyone having successful experience of not trivial validations 
using validwhen?
Ai sensi del D.Lgs.196/2003 si precisa che le informazioni contenute in questo 
messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in 
parola Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo e a 
non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.<BR><BR>Pursuant 
to Legislative Decree No. 196/2003, you are hereby informed that this message contains 
confidential information intended only for the use of the addressee. If you are not 
the addressee, and have received this message by mistake, please delete it and 
immediately notify us. You may not copy or disseminate this message to anyone. Thank 
you.

Reply via email to