Re: [WebDNA] Showif Hideif If Then Case Sensitivity

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115064
interpreted = N
texte = 2693 --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Another option: [showif = [url][encrypt][tVal1][/encrypt][/url]=3D[url][encrypt][tVal2][/encrypt][/u= rl]] - Brian Fries > On Mar 6, 2020, at 12:24 PM, talk@webdna.us wrote: >=20 > One of my students was surprised to find out there was no case = sensitivy settings for comparisons. This was causing a bunch of issues = with comparing certain strings. >=20 > A quick search on the archives led me to the surprising fact that he = was indeed right. After mulling around for a few minutes to try and come = up with a solution I came up with an easy function that does this = quickly and easily. >=20 > If the is useful to someone feel free to throw it in your Functions = Library and enjoy. >=20 > Have a good weekend everyone. > Alex >=20 >=20 > [function name=3DCC] > [table name=3DCS&fields=3DC1] > [w1] > [/table] > [text]CW=3D[search = table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/text] > [return][CW][/return] > [/function] >=20 >=20 > Just call the function with the 2 strings. > [CC w1=3Dabc&w2=3DAbc] >=20 >=20 >=20 > This lets you easily do following: > [showif [CC w1=3Dabc&w2=3DAbc]=3D1]They are the same[/showif] >=20 >=20 > or if you prefer >=20 > [text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text] > [showif [casecheck]=3D1]They are the same[/showif] >=20 >=20 > Alexander J. McCombie > Computer Coding Instructor / Career & Technical Education >=20 > Center for Instruction, Technology & Innovation > 179 County Route 64, Mexico, NY 13114 > P: 315.963.4411 > amccombie@citiboces.org = ----------------------------------------= ----------------- This message is sent to you because you are subscribed = to the mailing list talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: support@webdna.us --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Another option:

[showif = [url][encrypt][tVal1][/encrypt][/url]=3D[url][encrypt][tVal2][/encrypt][/u= rl]]

- Brian = Fries


On Mar 6, 2020, at 12:24 PM, talk@webdna.us = wrote:

One of my students was = surprised to find out there was no case sensitivy settings for = comparisons. This was causing a bunch of issues with comparing certain = strings.

 A = quick search on the archives led me to the surprising fact that he was = indeed right. After mulling around for a few minutes to try and come up = with a solution I came up with an easy function that does this quickly = and easily.

If = the is useful to someone feel free to throw it in your Functions Library = and enjoy.

Have = a good weekend everyone.
Alex


[function name=3DCC]
[table name=3DCS&fields=3DC1]
[w1]
[/table]
[text]CW=3D[search = table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/te= xt]
[return][CW][/return]
[/function]


Just call the function = with the 2 strings.
[CC = w1=3Dabc&w2=3DAbc]



This lets you easily do = following:
[showif [CC w1=3Dabc&w2=3DAbc]=3D1]The= y are the same[/showif]


or if you = prefer

[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text]
[showif [casecheck]=3D1]They are the same[/showif]


Alexander J. McCombie
Computer Coding Instructor / Career & = Technical Education

Center for Instruction, = Technology & Innovation
179 County Route = 64, Mexico, NY 13114
P: 315.963.4411
amccombie@citiboces.org
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2-- . 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)
2693 --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Another option: [showif = [url][encrypt][tVal1][/encrypt][/url]=3D[url][encrypt][tVal2][/encrypt][/u= rl]] - Brian Fries > On Mar 6, 2020, at 12:24 PM, talk@webdna.us wrote: >=20 > One of my students was surprised to find out there was no case = sensitivy settings for comparisons. This was causing a bunch of issues = with comparing certain strings. >=20 > A quick search on the archives led me to the surprising fact that he = was indeed right. After mulling around for a few minutes to try and come = up with a solution I came up with an easy function that does this = quickly and easily. >=20 > If the is useful to someone feel free to throw it in your Functions = Library and enjoy. >=20 > Have a good weekend everyone. > Alex >=20 >=20 > [function name=3DCC] > [table name=3DCS&fields=3DC1] > [w1] > [/table] > [text]CW=3D[search = table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/text] > [return][CW][/return] > [/function] >=20 >=20 > Just call the function with the 2 strings. > [CC w1=3Dabc&w2=3DAbc] >=20 >=20 >=20 > This lets you easily do following: > [showif [CC w1=3Dabc&w2=3DAbc]=3D1]They are the same[/showif] >=20 >=20 > or if you prefer >=20 > [text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text] > [showif [casecheck]=3D1]They are the same[/showif] >=20 >=20 > Alexander J. McCombie > Computer Coding Instructor / Career & Technical Education >=20 > Center for Instruction, Technology & Innovation > 179 County Route 64, Mexico, NY 13114 > P: 315.963.4411 > amccombie@citiboces.org = ----------------------------------------= ----------------- This message is sent to you because you are subscribed = to the mailing list talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: support@webdna.us --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Another option:

[showif = [url][encrypt][tVal1][/encrypt][/url]=3D[url][encrypt][tVal2][/encrypt][/u= rl]]

- Brian = Fries


On Mar 6, 2020, at 12:24 PM, talk@webdna.us = wrote:

One of my students was = surprised to find out there was no case sensitivy settings for = comparisons. This was causing a bunch of issues with comparing certain = strings.

 A = quick search on the archives led me to the surprising fact that he was = indeed right. After mulling around for a few minutes to try and come up = with a solution I came up with an easy function that does this quickly = and easily.

If = the is useful to someone feel free to throw it in your Functions Library = and enjoy.

Have = a good weekend everyone.
Alex


[function name=3DCC]
[table name=3DCS&fields=3DC1]
[w1]
[/table]
[text]CW=3D[search = table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/te= xt]
[return][CW][/return]
[/function]


Just call the function = with the 2 strings.
[CC = w1=3Dabc&w2=3DAbc]



This lets you easily do = following:
[showif [CC w1=3Dabc&w2=3DAbc]=3D1]The= y are the same[/showif]


or if you = prefer

[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text]
[showif [casecheck]=3D1]They are the same[/showif]


Alexander J. McCombie
Computer Coding Instructor / Career & = Technical Education

Center for Instruction, = Technology & Innovation
179 County Route = 64, Mexico, NY 13114
P: 315.963.4411
amccombie@citiboces.org
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_C599A345-3E36-4F10-ABEE-911D499951C2-- . Brian Fries

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 [FoundItems] Problem - AGAIN - (1997) Apache on windows and WebDNA (2004) [WebDNA] lists opinion - [listwords] delimiter change (2009) Okay, I give up... (1999) Speed Admin? (Was FlushDatabases) (1997) Extended [ConvertChars] (1997) frames & carts (1997) PCS Frames (1997) WCS Newbie question (1997) Re1000002: Setting up shop (1997) 2.0Beta Command Ref (can't find this instruction) (1997) Converting characters to numbers ... (1997) Error handling for accountNum (1997) Online reference (1997) Setting up the server (1997) Re2: Calculating multiple shipping... (1997) Webmerchant confirmation hooks? (1997) dumb questions. (2000) Non-Cart Files in Shopping Cart Folder (1997) question about checkboxes (1999)