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:

variables in or out of includes (2001) Cart questions (1997) RE: [WebDNA] OS X mail server (2009) Different Tax levels (1998) Dates (1996) Individual LineItemChangePassword files would be better ... (1999) Shipcost formula (2004) No one gets my client's code for free ... (2005) Items XX to XX shown (1997) Maximum characters in header? (1999) [WebDNA] isolatin-1 to utf-8 conversion (2013) [LOOKUP] (1997) [WebDNA] Another strange WebDNA problem (2013) Almost a there but..bye bye NetCloak (1997) String manipulation in Webcatalog (2001) Cart Number sequence (1997) WebCatalog as another user on mac osx (2001) [WebDNA] Domain limits (2009) WebCat2 Append problem (B14Macacgi) (1997) Bug or syntax error on my part? (1997)