Re: ShowIf & HideIf Question?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16386
interpreted = N
texte = Simon Buchanan wrote: > > Say i have a database like this: > > SKU FIELD1 > 001 entry1 > 002 entry1 > 003 entry2 > 004 entry2 > 005 entry3 > 005 entry3 > > What i would like to do is this: > > If FIELD1 = entry2 then show this is an entry2 > If FIELD1 = entry3 then show this is an entry3 > If FIELD1 ! entry2 or entry3 then show this is neither an entry2 or an > entry3 > > Any help would be greatly appreciated. Obviously the database is quite a bit > bigger that this :)how about a case context, ie [case [field1] = texta, textb, textc, textd, default][case1= Show this if field1 equals texta][case2= Show this if field1 equals textb][case3 = Show this if field1 equals textc][case4= Show this if field1 equals textd][default = Show this if nothing matches][/case]Generally, I miss more programming like logic (I like my if/else clauses).Chris Gursche EC&T Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Showif Hideif If Then Case Sensitivity (Brian Fries 2020)
  2. [WebDNA] Showif Hideif If Then Case Sensitivity (Alex Mccombie 2020)
  3. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  4. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  5. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  6. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  7. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  8. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  9. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  10. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  11. Re: [WebDNA] showif with empty variable (Steve Braun 2015)
  12. Re: [WebDNA] showif with empty variable (Kenneth Grome 2015)
  13. Re: [WebDNA] showif with empty variable (Donovan Brooke 2015)
  14. Re: [WebDNA] showif with empty variable (Brian Burton 2015)
  15. Re: [WebDNA] showif with empty variable (Terry Wilson 2015)
  16. Re: [WebDNA] showif with empty variable (Dan Strong 2015)
  17. [WebDNA] showif with empty variable (Steve Braun 2015)
  18. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Govinda 2011)
  19. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Donovan Brooke 2011)
  20. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Steve Raslevich -Northern Sound 2011)
  21. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Kenneth Grome 2011)
  22. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (christophe.billiottet@webdna.us 2011)
  23. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Govinda 2011)
  24. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (christophe.billiottet@webdna.us 2011)
  25. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (christophe.billiottet@webdna.us 2011)
  26. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Govinda 2011)
  27. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Donovan Brooke 2011)
  28. Re: [WebDNA] SEARCH question - SHOWIF - HIDEIF question (Steve Raslevich -Northern Sound 2011)
  29. Re: [WebDNA] agree? --> also broken when we compare against something with a "!" in it. (John Butler 2009)
  30. Re: [WebDNA] agree? --> also broken when we compare against something with a "!" in it. (christophe.billiottet@webdna.us 2009)
  31. [WebDNA] agree? --> also broken when we compare against something with a "!" in it. (John Butler 2009)
  32. Re: Showif date > other date ( Alan White 2004)
  33. Re: Showif date > other date ( Kenneth Grome 2004)
  34. Re: Showif date > other date ( Jesse Proudman 2004)
  35. Re: Showif date > other date ( Kenneth Grome 2004)
  36. Re: Showif date > other date ( Tim Robinson 2004)
  37. Re: Showif date > other date ( Jesse Proudman 2004)
  38. Re: Showif date > other date ( Kenneth Grome 2004)
  39. Re: Showif date > other date ( "Gary Krockover" 2004)
  40. Re: Showif date > other date ( Jesse Proudman 2004)
  41. Re: Showif date > other date ( Kenneth Grome 2004)
  42. Re: Showif date > other date ( Tim Robinson 2004)
  43. Re: Showif date > other date ( Kenneth Grome 2004)
  44. Re: Showif date > other date ( Stuart Tremain 2004)
  45. Re: Showif date > other date ( Kenneth Grome 2004)
  46. Re: Showif date > other date ( Stuart Tremain 2004)
  47. Re: Showif date > other date ( Stuart Tremain 2004)
  48. Re: Showif date > other date ( Alan White 2004)
  49. Re: Showif date > other date ( devaulw@onebox.com 2004)
  50. Showif date > other date ( Alan White 2004)
  51. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  52. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  53. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  54. Re: hideif/showif causes error if wrapped around searches ( Chris List Recipient 2003)
  55. Re: hideif/showif causes error if wrapped around searches ( "Scott Anderson" 2003)
  56. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  57. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  58. Re: hideif/showif causes error if wrapped around searches ( Matthew A Perosi 2003)
  59. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  60. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  61. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  62. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  63. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  64. Re: hideif/showif causes error if wrapped around searches ( "Dan Strong" 2003)
  65. Re: hideif/showif causes error if wrapped around searches ( "WebDna @" 2003)
  66. Re: hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  67. Re: hideif/showif causes error if wrapped around searches ( Terry Wilson 2003)
  68. hideif/showif causes error if wrapped around searches ( "Gary Krockover" 2003)
  69. Re: Showif with an or (Kenneth Grome 2003)
  70. Re: Showif with an or (Rob Marquardt 2003)
  71. Re: Showif with an or (Donovan home EHG 2003)
  72. Re: Showif with an or (andy mowrey 2003)
  73. Re: Showif with an or (Gary Krockover 2003)
  74. Re: Showif with an or (Donovan home EHG 2003)
  75. Re: Showif with an or (Gary Krockover 2003)
  76. Re: Showif with an or (Brian Boegershausen 2003)
  77. Re: Showif with an or (Donovan home EHG 2003)
  78. Re: Showif with an or (andy mowrey 2003)
  79. Showif with an or (stephen 2003)
  80. Re: Golive parses [showif [index]<4] weird (WJ Starck 2003)
  81. Re: Golive parses [showif [index]<4] weird (Tim Robinson 2003)
  82. Golive parses [showif [index]<4] weird (WJ Starck 2003)
  83. Re: Showif Error Generated... (Kenneth Grome 2003)
  84. Re: Showif Error Generated... (Glenn Busbin 2003)
  85. Re: Showif Error Generated... (Kimberly D. Walls 2003)
  86. Re: Showif Error Generated... (Donovan Brooke 2003)
  87. Re: Showif Error Generated... (Kimberly D. Walls 2003)
  88. Re: Showif Error Generated... (Gary Krockover 2003)
  89. Re: Showif Error Generated... (Kimberly D. Walls 2003)
  90. Re: Showif Error Generated... (WJ Starck 2003)
  91. Re: Showif Error Generated... (Glenn Busbin 2003)
  92. Showif Error Generated... (Kimberly D. Walls 2003)
  93. Re: SHOWIF [var_with_backslash]^[value] (Chris List Recipient 2002)
  94. Re: SHOWIF [var_with_backslash]^[value] (Chris List Recipient 2002)
  95. Re: SHOWIF [var_with_backslash]^[value] (Donovan Brooke 2002)
  96. Re: SHOWIF [var_with_backslash]^[value] (Gary Krockover 2002)
  97. Re: SHOWIF [var_with_backslash]^[value] (Chris List Recipient 2002)
  98. Re: SHOWIF [var_with_backslash]^[value] (Donovan Brooke 2002)
  99. SHOWIF [var_with_backslash]^[value] (Chris List Recipient 2002)
  100. Re: Showif dates... (Donovan Brooke 2002)
  101. Re: Showif dates... (Tim Robinson 2002)
  102. Re: Showif dates... (Grant Hulbert 2002)
  103. Re: Showif dates... (Inkblot Media 2002)
  104. Re: Showif dates... (Inkblot Media 2002)
  105. Re: Showif dates... (Inkblot Media 2002)
  106. Re: Showif dates... (Inkblot Media 2002)
  107. Re: Showif dates... (Tim Robinson 2002)
  108. Fwd: Showif dates... (Claude Gelinas 2002)
  109. Re: showif funnyness in Netscape only. (Michael Davis 2002)
  110. showif funnyness in Netscape only. (Josh Lynn 2002)
  111. Re: Showif with multiple options (Jeff Logan 2002)
  112. Re: Showif with multiple options (Grant Hulbert 2002)
  113. Showif with multiple options (Jeff Logan 2002)
  114. Re: showif math date (Brian Fries 2002)
  115. Re: showif math date (Ron Ceballos 2002)
  116. Re: showif math date (Jesse Williams-Proudman 2002)
  117. showif math date (Ron Ceballos 2002)
  118. Re: Showif vs. IF/then/else (Alain Russell 2001)
  119. Re: Showif vs. IF/then/else (Donovan Brooke 2001)
  120. Re: Showif vs. IF/then/else (Scott Anderson 2001)
  121. Re: Showif vs. IF/then/else (Grant Hulbert 2001)
  122. Re: Showif vs. IF/then/else (Donovan Brooke 2001)
  123. Re: Showif vs. IF/then/else (John Peacock 2001)
  124. Re: Showif vs. IF/then/else (Donovan Brooke 2001)
  125. Re: Showif vs. IF/then/else (Donovan Brooke 2001)
  126. Showif vs. IF/then/else (Donovan Brooke 2001)
  127. Re: Strange ShowIf behaviour (Stuart Tremain 2001)
  128. Re: Strange ShowIf behaviour (Maurice Rickard 2001)
  129. Re: Strange ShowIf behaviour (Brian Fries 2001)
  130. Re: Strange ShowIf behaviour (Stuart Tremain 2001)
  131. Re: Strange ShowIf behavior (Pedro Rivera 2001)
  132. Re: Strange ShowIf behaviour (Maurice Rickard 2001)
  133. Strange ShowIf behaviour (Stuart Tremain 2001)
  134. Re: Showif Question (Michael Davis 2001)
  135. Re: Showif Question (Alain Russell 2001)
  136. Showif Question (Jeff Logan 2001)
  137. Re: Showif ~ Netscape : Showif ~ MSIE (Nitai @ ComputerOil 2001)
  138. Re: Showif ~ Netscape : Showif ~ MSIE (James DeCambra 2001)
  139. Re: Showif ~ Netscape : Showif ~ MSIE (Jeff Logan 2001)
  140. Re: Showif ~ Netscape : Showif ~ MSIE (James DeCambra 2001)
  141. Re: Showif ~ Netscape : Showif ~ MSIE (John Peacock 2001)
  142. Showif ~ Netscape : Showif ~ MSIE (Jeff Logan 2001)
  143. Re: Showif = stumped? (Jeff Logan 2001)
  144. Re: Showif = stumped? (William DeVaul, Connected Collector, Inc. 2001)
  145. Re: Showif = stumped? (Jeff Logan 2001)
  146. Re: Showif = stumped? (Brian Boegershausen 2001)
  147. Re: Showif = stumped? (Michael Winston 2001)
  148. Re: Showif = stumped? (Anup Setty 2001)
  149. Showif = stumped? (Jeff Logan 2001)
  150. Re: Showif ^ (Jimmi Kristensen 2000)
  151. Showif ^ (Jimmi Kristensen 2000)
  152. Re: embedded showif statements (Rob Marquardt 2000)
  153. Re: embedded showif statements (webcatlist@medien-gmbh.de 2000)
  154. Re: embedded showif statements (Ooops) (Charles Kline 2000)
  155. Re: embedded showif statements (Charles Kline 2000)
  156. Re: embedded showif statements (Charles Kline 2000)
  157. embedded showif statements (AEC Software, Matthew Levy 2000)
  158. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  159. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  160. Re: [showif [numfound]=0]? (John Butler 2000)
  161. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  162. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  163. Re: [showif [numfound]=0]? (Jesse Proudman (Lists Account) 2000)
  164. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  165. Re: [showif [numfound]=0]? (Nitai @ Eyework 2000)
  166. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  167. Re: [showif [numfound]=0]? (WebDNA Support 2000)
  168. [showif [numfound]=0]? (Tim Robinson 2000)
  169. Re: [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (John Butler 2000)
  170. Re: [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (Kenneth Grome 2000)
  171. Re: [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (John Butler 2000)
  172. Re: [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (Kenneth Grome 2000)
  173. Re: [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (Kenneth Grome 2000)
  174. [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (John Butler 2000)
  175. Re: search/showif issues (John Butler 2000)
  176. Re: search/showif issues (Brian Wachter 2000)
  177. Re: search/showif issues (Brian Wachter 2000)
  178. Re: search/showif issues (Jesse Williams Proudman 2000)
  179. Re: search/showif issues (Kenneth Grome 2000)
  180. Re: search/showif issues (Kenneth Grome 2000)
  181. Re: search/showif issues (Jesse Williams Proudman 2000)
  182. Re: search/showif issues (Brian Wachter 2000)
  183. Re: search/showif issues (Jesse Williams Proudman 2000)
  184. search/showif issues (Brian Wachter 2000)
  185. Re: Showif Or (Chuck Rice 2000)
  186. Re: Showif Or (WebDNA Support 2000)
  187. Re: Showif Or (jpeacock@univpress.com 2000)
  188. Showif Or (Andy Mowrey 2000)
  189. Re: showif with math? (Parker 2000)
  190. Re: showif with math? (The Mooseman 2000)
  191. Re: showif with math? (Kenneth Grome 2000)
  192. Re: showif with math? (Jason Sofonia 2000)
  193. showif with math? (Parker 2000)
  194. Feature Request: ! character bug correct in [showif [variable]=] (Nicolas Verhaeghe 2000)
  195. Re: ShowIF Question (Joseph D'Andrea 2000)
  196. Re: ShowIF Question (Christer Olsson 2000)
  197. Re: ShowIF Question (WebDNA Support 2000)
  198. ShowIF Question (Stephen Russo 2000)
  199. Re: ShowIf & CountChars (John Butler 2000)
  200. Re: ShowIf & CountChars (Anup Setty 2000)
  201. Re: ShowIf & CountChars (Mark Derrick 2000)
  202. ShowIf & CountChars (John's Lists 2000)
  203. Re: ShowNext & Showif together (Rodolfo de la Garza 1999)
  204. Re: [showif [math (Kenneth Grome 1999)
  205. Re: [showif [math (Charles Kline 1999)
  206. [showif [math (Paul Fowler 1999)
  207. Re: ShowNext & Showif together (Kenneth Grome 1999)
  208. ShowNext & Showif together (Rodolfo de la Garza 1999)
  209. ShowNext & Showif together (Rodolfo de la Garza 1999)
  210. Re: Showif date range comparison (Kenneth Grome 1999)
  211. Re: Showif date range comparison (es-sleestak 1999)
  212. Re: Showif date range comparison (Ben Weinberg 1999)
  213. Re: Showif date range comparison (Kenneth Grome 1999)
  214. Re: Showif date range comparison (Ben Weinberg 1999)
  215. Re: Showif date range comparison (John Jakovich 1999)
  216. Showif date range comparison (Ben Weinberg 1999)
  217. Re: Showif -what am I missing??? (Will Starck 1999)
  218. Re: Showif -what am I missing??? (Peter Ostry 1999)
  219. Re: Showif -what am I missing??? (josh@pop-art.com 1999)
  220. Showif -what am I missing??? (Will Starck 1999)
  221. Re: ShowIf Question (PCS Technical Support 1998)
  222. Re: ShowIf Question (Christer Olsson 1998)
  223. ShowIf Question (Mike Heininger 1998)
  224. Re: Trouble with Showif and Search (Kenneth Grome 1998)
  225. Re: Trouble with Showif and Search (RH Prouty 1998)
  226. Re: Trouble with Showif and Search (Kenneth Grome 1998)
  227. Trouble with Showif and Search (RH Prouty 1998)
  228. Re: showif errors (PCS Technical Support 1998)
  229. showif errors (Chuck Wall 1998)
  230. Re: ShowIf helper? (PCS Technical Support 1998)
  231. ShowIf helper? (Angel Bennett 1998)
  232. ShowIf helper? (Angel Bennett 1998)
  233. Re: showif and cart (Kenneth Grome 1998)
  234. Re: ShowIf & HideIf Question? (Chris Gursche 1998)
  235. Re: [ot] ShowIf & HideIf Question (Kenneth Grome 1998)
  236. [ot] ShowIf & HideIf Question (Brian B. Burton 1998)
  237. Re: RE:ShowIf & HideIf Question? (Simon Buchanan 1998)
  238. ShowIf & HideIf Question? (Simon Buchanan 1998)
  239. Re: ShowIf & HideIf Question? (Grant Hulbert 1998)
  240. Re: ShowIf & HideIf Question? (Grant Hulbert 1998)
  241. Re: ShowIf & HideIf Question? (Brian B. Burton 1998)
  242. Re: showif field is number (Kenneth Grome 1997)
  243. Re: showif field is number (Pat McCormick 1997)
  244. showif field is number (Pat McCormick 1997)
  245. Re: showif comparison begins w/ and contains (John Hill 1997)
  246. Re: showif comparison begins w/ and contains (Sandra L. Pitner 1997)
  247. showif comparison begins w/ and contains (Sandra L. Pitner 1997)
  248. Re: Showif Context combined with Search (Kenneth Grome 1997)
  249. Re: Showif Context combined with Search (Larry Orchier 1997)
  250. Re: Showif Context combined with Search (Grant Hulbert 1997)
  251. Showif Context combined with Search (Larry Orchier 1997)
  252. Problem with Showif & Applescript (Phil Marshall 1997)
  253. Re: Showif probably dumb question (Grant Hulbert 1997)
  254. Showif probably dumb question (grichter@panavise.com (Gary Richter) 1997)
  255. Re: Showif for mulitple variations (Rob Marquardt 1997)
  256. Re: Showif for mulitple variations (Brian B. Burton 1997)
  257. Re: Showif for mulitple variations (Christer Olsson 1997)
  258. Re: Showif for mulitple variations (Kenneth Grome 1997)
  259. Re: Showif for mulitple variations (Brian B. Burton 1997)
  260. Showif for mulitple variations (Brian B. Burton 1997)
  261. Re: Showif for mulitple variations (Grant Hulbert 1997)
  262. ShowIf inside formulas (Grant Hulbert 1997)
  263. FW: ANother SHOWIF problem (Marc Eagle 1997)
  264. FW: ANother SHOWIF problem (Marc Eagle 1997)
  265. RE: ANother SHOWIF problem (Michael Winston 1997)
  266. RE: ANother SHOWIF problem (Marc Eagle 1997)
  267. Re: ANother SHOWIF problem (Michael Winston 1997)
  268. Re: ANother SHOWIF problem (Kenneth Grome 1997)
  269. Re: ANother SHOWIF problem (Kenneth Grome 1997)
  270. ANother SHOWIF problem (Michael Winston 1997)
  271. Re: Quick ShowIf question (Grant Hulbert 1997)
  272. Re: Quick ShowIf question (Kenneth Grome 1997)
  273. Quick ShowIf question (Gil Poulsen 1997)
  274. ShowIf variables (Trevor Crist 1997)
  275. Re: ShowIf variables (Christer Olsson 1997)
  276. Re: ShowIf variables (grichter@panavise.com (Gary Richter) 1997)
  277. Re: [SHOWIF AND/OR] (Christer Olsson 1997)
  278. Re: [SHOWIF AND/OR] (Grant Hulbert 1997)
  279. Re: [SHOWIF AND/OR] (John Hill 1997)
  280. [SHOWIF AND/OR] (Christer Olsson 1997)
  281. showif and cart (Dennis J. Bonsall, Jr. 1997)
Simon Buchanan wrote: > > Say i have a database like this: > > SKU FIELD1 > 001 entry1 > 002 entry1 > 003 entry2 > 004 entry2 > 005 entry3 > 005 entry3 > > What i would like to do is this: > > If FIELD1 = entry2 then show this is an entry2 > If FIELD1 = entry3 then show this is an entry3 > If FIELD1 ! entry2 or entry3 then show this is neither an entry2 or an > entry3 > > Any help would be greatly appreciated. Obviously the database is quite a bit > bigger that this :)how about a case context, ie [case [field1] = texta, textb, textc, textd, default][case1= Show this if field1 equals texta][case2= Show this if field1 equals textb][case3 = Show this if field1 equals textc][case4= Show this if field1 equals textd][default = Show this if nothing matches][/case]Generally, I miss more programming like logic (I like my if/else clauses).Chris Gursche EC&T Chris Gursche

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:

[OT] Domain Name Scam (2000) Use of Back and Reload Buttons on ShoppingCart page? (1997) [OT] was SQL Query Question (2001) WebCat2b13 Command Reference Doc error (1997) emailer on Windows Beta 18 (1997) Toronto area? (1999) BGcolor (1997) WebDNA tags in WebMerchant email templates ... (1997) Likelihood of a duplicate (2005) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) Running 2 two WebCatalog.acgi's (1996) [WebDNA] [store] and [recall]: default db location (2015) [WebDNA] Set UID/GID/Permissions (2009) Any way to retrieve information from clipboard? (1998) I give up!! (1997) WC2.0 Memory Requirements (1997) Unknown error: OrderNotCreated (1997) Multiple prices per product (2004) max page views Mac can handle (1999) A quickie question (1997)