Re: nested showif?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17248
interpreted = N
texte = >Is there a way to combine [showif] commands? > >I have: >[showif [name]=phone] > [showif [value]> ] > ...do something... > [/showif] >[/showif| > >And I want something which does: >[showif [name]=phone]-AND-[value]> ] > ...do something... >[/showif]You're already doing it the right way. If you have lot's of conditions you could add a simple check function by:[Math show=f]EverythingsOK=0[/Math][HideIf [value1]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] [HideIf [value2]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] [HideIf [value3]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf][ShowIf [Math]EverythingsOK[/Math]0] Your magic message here [/ShowIf] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: nested showif? (Kenneth Grome 1998)
  2. Re: nested showif? (christer@ljusaideer.se (Christer Olsson) 1998)
  3. nested showif? (Peter Ostry 1998)
>Is there a way to combine [showif] commands? > >I have: >[showif [name]=phone] > [showif [value]> ] > ...do something... > [/showif] >[/showif| > >And I want something which does: >[showif [name]=phone]-AND-[value]> ] > ...do something... >[/showif]You're already doing it the right way. If you have lot's of conditions you could add a simple check function by:[Math show=f]EverythingsOK=0[/Math][HideIf [value1]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] [HideIf [value2]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf] [HideIf [value3]=1][Math show=f]EverythingsOK=EverythingsOK+1[/Math][/HideIf][ShowIf [math]EverythingsOK[/Math]0] Your magic message here [/ShowIf] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se christer@ljusaideer.se (Christer Olsson)

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog-NT?'s (1996) [OT] : Chat Room on OSX (2003) [OT] Ratings comparison? (2003) [WebDNA] Add to Cart,/ show cart: unable to access page (2016) Possible to reset Linux file permissions w/in webcat [shell] ? (2000) SendNews (1999) Sorting nested search (2003) Re2: AAgghh!! Help, please. SSL strikes again. (1997) Country & Ship-to address & other fields ? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [isfolder] and [filename] (1997) WebCat2 beta 11 - new prefs ... (1997) Sku numbers (1997) WebCat2 - Getting to the browser's username/password data (1997) I caught a Jaguar ;) (2002) Help DebugLevel Content-type: text/html (1998) Hummm .... (2002) FTP FOLDER PERMISSIONS (2004) RE: [WebDNA] Send results to more pages? (2011) Spawning Holdup? (2000)