Re: HideIf ip= OR ip=

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19482
interpreted = N
texte = >I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [HIDEIF] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [MATH]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* 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: HideIf ip= OR ip= (Michael Winston 1998)
  2. Re: HideIf ip= OR ip= (Brian B. Burton 1998)
  3. Re: HideIf ip= OR ip= (Michael Winston 1998)
  4. Re: HideIf ip= OR ip= (PCS Technical Support 1998)
  5. Re: HideIf ip= OR ip= (Christer Olsson 1998)
  6. HideIf ip= OR ip= (Sue Ann Sanders 1998)
>I'm trying to do a HideIf command based on IP address. I'm wondering if >it's possible to put 2 IP address in the command. > >Here's my code: >[hideif [ipaddress]^204.107.136.][include email.txt][/hideif] > >This seems to work fine with one number. > >I've tried putting in a comma along with another IP address and then it >breaks. > >Is it possible to have 2 numbers? Or is there a workaround?Just nesting the [hideif] tags should work, like:[HIDEIF [ipaddress]^204.107.136.] [HIDEIF [ipaddress]^204.107.137.] [include email.txt] [/HIDEIF] [/HIDEIF]Or you could do it the more general way:[MATH show=F]DontShow=0[/MATH][SHOWIF [ipaddress]^204.107.136.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][SHOWIF [ipaddress]^204.107.137.] [MATH show=F]DontShow=1[/MATH] [/SHOWIF][HIDEIF [math]DontShow[/MATH]=1] [include email.txt] [/HIDEIF] ************************************************************* 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 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:

[delete] problem (1997) inetinfo.exe (1999) Tab Charactor (1997) WebCat2: multiple currency support (1997) http or https (2005) Folder Follies (1998) question: webmerchant connection (1997) quick [middle] Q (2000) Where's Cart Created ? (1997) UPS Ratings and Services free package: version 2 available (2000) Max Record length restated as maybe bug (1997) authorizenet and netscape (2002) OT: RAID Options (2004) WebCat2 - storing unformatted date data? (1997) List Name Change (2002) Newbie - Search question (1998) Database Structure? (1998) CC Merchant suggestions?? (1997) Searching multiple fields from one form field (1997) RE: [redirect] w/o showing args? (1999)