Re: [WebDNA] Text Variable in Search
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105378
interpreted = N
texte =
To do this, you need to use [interpet]like so:
=
[interpret][[slideshow]][/interpret]
This will first evaluate [slideshow]. If thatvalue is 'yes' then interpret [yes], so the result would be RockU
Terry
On Mon, 21 Jun 2010 04:29:37 +0800
sg=bc cebu <sgbccebu@gmail.com> wrote:
>Had difficulty of pulling a text variable via a
>database.
>=
> Please consider this code:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> [text]YES=3DRockU[/tex=t]
>
>
> [searchdb=3Dinc/content.db&geSKUdata=3D0&SKUsort=3D1]
> [founditem=s]
>
> [[Slideshow]]
>
>[/founditems]
> [/search]
>
> =3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>
> Where [SlideShow]either will get a YES or a NO from
>database.
>
> The= problem is when [SlideShow] tells"YES".
> It will appear "[Yes]" on the page instead of "Rocku"
&=gt;
> Thanks
=A0
Associated Messages, from the most recent to the oldest:To do this, you need to use [interpet]like so:
=
This will first evaluate [slideshow]. If thatvalue is 'yes' then interpret [yes], so the result would be RockU
Terry
On Mon, 21 Jun 2010 04:29:37 +0800
sg=bc cebu <sgbccebu@gmail.com> wrote:
>Had difficulty of pulling a text variable via a
>database.
>=
> Please consider this code:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>
[text]YES=3DRockU[/tex=t]
>
>
> [searchdb=3Dinc/content.db&geSKUdata=3D0&SKUsort=3D1]
> [founditem=s]
>
> [[Slideshow]]
>
>[/founditems]
> [/search]
>
> =3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>
> Where [SlideShow]either will get a YES or a NO from
>database.
>
> The= problem is when [SlideShow] tells"YES".
> It will appear "[Yes]" on the page instead of "Rocku"
&=gt;
> Thanks
=A0
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...