What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: Trouble with [fileinfo] - update: TIP OF THE DAY

This WebDNA talk-list message is from

THE/


It keeps the original formatting.
numero = 58687
interpreted = N
texte = Perfect illustration. It will evaluate the expression to true or false, but that expression seems to require "=" somewhere. On Jun 28, 2004, at 5:02 PM, Brian Fries wrote: > TIP OF THE DAY: > > Set your true/false text variable to "1=1" for true or "1=0" for > false. Then you can use it in your if, showif, or hideif context as a > singular true/false value. > > [text]isImage=1=1[/text] > [if [isImage]][then] > YES > [/then][else] > NO > [/else][/if] > > The "isImage" variable will be replaced with "1=1" which the IF > statement will evaluate to TRUE, resulting in the execution of the > THEN clause. If "isImage" was set to "1=0", then the IF would evaluate > FALSE and the ELSE clause would be executed. > > - brian > > On Jun 28, 2004, at 2:49 PM, Patrick McCormick wrote: > >> Yeah I know, but it seems like an opportunity was missed for more >> graceful syntax. >> >> [showif xxx] should look at whatever xxx is. Variables that evaluate >> to T=1=true=TRUE=on, etc., should fire the showif just as the result >> of an expression does. Actually, it would have been harder to code it >> to require an expression, I think. >> >> Pat >> >> On Jun 28, 2004, at 4:22 PM, Gary Krockover wrote: >> >>> Yours: >>> [showif [img]]This doesn't display[/showif] >>> >>> >>> >>> [showif [img]=]This doesn't display[/showif] >>> [showif [img]!]This doesn't display[/showif] >>> >>> Your missing the operator in there.... >>> >>> GK >>> >>> >>> At 03:51 PM 6/28/2004, you wrote: >>>> What am I missing? >>>> >>>> [text]img=T[/text] >>>> [showif [img]]This doesn't display[/showif] >>>> [showif [img]=T]This does[/showif] >>> >>> > -- Brian Fries, BrainScan Software -- > http://www.brainscansoftware.com -- > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Trouble with [fileinfo] - update: TIP OF THE DAY ( Patrick McCormick THE/)
  2. Re: Trouble with [fileinfo] - update: TIP OF THE DAY ( Brian Fries THE/)
Perfect illustration. It will evaluate the expression to true or false, but that expression seems to require "=" somewhere. On Jun 28, 2004, at 5:02 PM, Brian Fries wrote: > TIP OF THE DAY: > > Set your true/false text variable to "1=1" for true or "1=0" for > false. Then you can use it in your if, showif, or hideif context as a > singular true/false value. > > [text]isImage=1=1[/text] > [if [isImage]][then] > YES > [/then][else] > NO > [/else][/if] > > The "isImage" variable will be replaced with "1=1" which the IF > statement will evaluate to TRUE, resulting in the execution of the > THEN clause. If "isImage" was set to "1=0", then the IF would evaluate > FALSE and the ELSE clause would be executed. > > - brian > > On Jun 28, 2004, at 2:49 PM, Patrick McCormick wrote: > >> Yeah I know, but it seems like an opportunity was missed for more >> graceful syntax. >> >> [showif xxx] should look at whatever xxx is. Variables that evaluate >> to T=1=true=TRUE=on, etc., should fire the showif just as the result >> of an expression does. Actually, it would have been harder to code it >> to require an expression, I think. >> >> Pat >> >> On Jun 28, 2004, at 4:22 PM, Gary Krockover wrote: >> >>> Yours: >>> [showif [img]]This doesn't display[/showif] >>> >>> >>> >>> [showif [img]=]This doesn't display[/showif] >>> [showif [img]!]This doesn't display[/showif] >>> >>> Your missing the operator in there.... >>> >>> GK >>> >>> >>> At 03:51 PM 6/28/2004, you wrote: >>>> What am I missing? >>>> >>>> [text]img=T[/text] >>>> [showif [img]]This doesn't display[/showif] >>>> [showif [img]=T]This does[/showif] >>> >>> > -- Brian Fries, BrainScan Software -- > http://www.brainscansoftware.com -- > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Patrick McCormick

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:

Banners (1997) Payment Calculator (2000) Re: (1998) Multiple catalog databases and showcart (1997) Almost a there but..bye bye NetCloak (1997) Summary search -- speed (1997) Show items based on login Password (2003) reserved characters for field names? (1998) One other big addition... (1997) international time (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Car Database (2002) WebDNA vital stats (2003) WebDNA and FreeBSD 6.1 with Apache (2007) RE: WebCatalog NT beta 18 now available (1997) Mime Headers for Mail (1998) WebCatalog can't find database (1997) Trouble with carts (2000) writing db to disk (1997) Re:quit command on NT (1997)