Re: [WebDNA] switch / case value=% BUG?

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115182
interpreted = N
texte = 2811 --Apple-Mail=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Maybe you will have to change the % to a different character using = ConvertChars or ConvertWords or grep and then test for the new character = or string. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 14 Sep 2020, at 03:44, talk@webdna.us wrote: >=20 > Hello all, >=20 > Is it me or is it not possible to use switch/case with a value=3D% >=20 > Could this be a bug or is there an escape character that should be = used? >=20 > Here's the code: > [text]textd=3D1234%6789[/text] > [listchars chars=3D[textd]] > [switch value=3D[url][char][/url]] > [case value=3D[url]%[/url]] > [text]img=3Dpcnt[/text] > [/case] > [case value=3D%25] > [text]img=3Dpcnt[/text] > [/case] > [default] > [text]img=3D[char][/text] > [/default] > [/switch] >=20 > As you can see I've tried with a comparison to [url]%[/url] and the = encoded %25. > Each time it gives me the default result. >=20 > My system: > CentOS Linux 7.7.1908 > WebDNA 8.5.1 server version >=20 > --=20 > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com >=20 > Psi Prime > 323 Union Blvd. > Totowa, NJ 07512 >=20 > Direct: 888.872.0274 > Fax: 888.488.5924 >=20 > http://www.perosi.com = --------------------------------------------------= ------- 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=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Maybe= you will have to change the % to a different character using = ConvertChars or ConvertWords or grep and then test for the new character = or string.


Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 14 Sep 2020, at 03:44, talk@webdna.us wrote:

=20 =20
Hello all,

Is it me or is it not possible to use switch/case with a value=3D%

Could this be a bug or is there an escape character that should be used?

Here's the code:
[text]textd=3D1234%6789[/text]
[listchars chars=3D[textd]]
[switch value=3D[url][char][/url]]
    [case value=3D[url]%[/url]]
        =[text]img=3Dpcnt[/text]
    [/case]
    [case value=3D%25]
        =[text]img=3Dpcnt[/text]
    [/case]
    [default]
        =[text]img=3D[char][/text]
    [/default]
[/switch]

As you can see I've tried with a comparison to [url]%[/url] and the encoded %25.
Each time it gives me the default result.

My system:
CentOS Linux 7.7.1908
WebDNA 8.5.1 server version

--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatormatt@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://www.perosi.com
--------------------------------------------------------- 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=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] switch / case value=% BUG? (Stuart Tremain 2020)
  2. [WebDNA] switch / case value=% BUG? ("Matthew A Perosi, Psi Prime" 2020)
2811 --Apple-Mail=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Maybe you will have to change the % to a different character using = ConvertChars or ConvertWords or grep and then test for the new character = or string. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 14 Sep 2020, at 03:44, talk@webdna.us wrote: >=20 > Hello all, >=20 > Is it me or is it not possible to use switch/case with a value=3D% >=20 > Could this be a bug or is there an escape character that should be = used? >=20 > Here's the code: > [text]textd=3D1234%6789[/text] > [listchars chars=3D[textd]] > [switch value=3D[url][char][/url]] > [case value=3D[url]%[/url]] > [text]img=3Dpcnt[/text] > [/case] > [case value=3D%25] > [text]img=3Dpcnt[/text] > [/case] > [default] > [text]img=3D[char][/text] > [/default] > [/switch] >=20 > As you can see I've tried with a comparison to [url]%[/url] and the = encoded %25. > Each time it gives me the default result. >=20 > My system: > CentOS Linux 7.7.1908 > WebDNA 8.5.1 server version >=20 > --=20 > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com >=20 > Psi Prime > 323 Union Blvd. > Totowa, NJ 07512 >=20 > Direct: 888.872.0274 > Fax: 888.488.5924 >=20 > http://www.perosi.com = --------------------------------------------------= ------- 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=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Maybe= you will have to change the % to a different character using = ConvertChars or ConvertWords or grep and then test for the new character = or string.


Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 14 Sep 2020, at 03:44, talk@webdna.us wrote:

=20 =20
Hello all,

Is it me or is it not possible to use switch/case with a value=3D%

Could this be a bug or is there an escape character that should be used?

Here's the code:
[text]textd=3D1234%6789[/text]
[listchars chars=3D[textd]]
[switch value=3D[url][char][/url]]
    [case value=3D[url]%[/url]]
        =[text]img=3Dpcnt[/text]
    [/case]
    [case value=3D%25]
        =[text]img=3Dpcnt[/text]
    [/case]
    [default]
        =[text]img=3D[char][/text]
    [/default]
[/switch]

As you can see I've tried with a comparison to [url]%[/url] and the encoded %25.
Each time it gives me the default result.

My system:
CentOS Linux 7.7.1908
WebDNA 8.5.1 server version

--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatormatt@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://www.perosi.com
--------------------------------------------------------- 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=_5AA9CAB3-4FB2-405C-89FF-F8F7A6D011E9-- . Stuart Tremain

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:

Webmerchant & Worldpay (2007) WebDNA Feature Request (2006) Running _every_ page through WebCat-error.html (1997) Fun with Dates - finally resolved but.... (1997) Search Engine questions ... (2002) emailer settings and control questions (1997) CASTEGORIES IN DIFFERENT FRAMES (1997) [SHOWIF] (1997) Re:PCS Customer submissions ? (1997) shownext (2001) Calculating multiple shipping... (1997) Searching multiple Databases (1997) Major Security Hole IIS NT (1998) Tax & Shipping (1997) Re:WebDNA Writer Needed (1997) RE: [WebDNA] [table] and COMMA in a Field (2015) Banners (1997) Question about Webcatalog and Webstar for Mac OS X (1998) Setting up shop (1997) Apache 2.2 (2007)