Re: 911: testing if the field is empty
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33629
interpreted = N
texte = >[if ([image_width]>100)|([image_width] is empty)> [then]100[/then]> [else][image_width][/else]>[/if]You are comparing the field as a number in one case, and as text in another. You can intermix the two by quoting the parts that you want to be considered text, and preceding the number with a zero in case it happens to be empty:[if (0[image_width]>100)|([image_width]=)] [then]100[/then] [else][image_width][/else][/if]Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>[if ([image_width]>100)|([image_width] is empty)> [then]100[/then]> [else][image_width][/else]>[/if]You are comparing the field as a number in one case, and as text in another. You can intermix the two by quoting the parts that you want to be considered text, and preceding the number with a zero in case it happens to be empty:[if (0[image_width]>100)|([image_width]=)] [then]100[/then] [else][image_width][/else][/if]Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************-------------------------------------------------------------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://search.smithmicro.com/
WebDNA Support
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:
MOOOOOO (2000)
Sort Order on a page search (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
RE: [WebDNA] SHA1 Encryption For WebDNA 6.2 (2013)
Emailer (WebCat2) (1997)
Using & in subject line (2003)
autosensing lanague selection (1997)
Major Security Hole (solution with Welcome) (1998)
auto-stripping of spaces (1997)
Uploading Files and Descriptions W* (2000)
Formulas.db + Users.db (1997)
The List is Changing (1997)
Stopping bad HTML propagation ? (1997)
Credit Card Gateways (2005)
Updating fields from different platforms (1998)
Sorry, WebDNA Server Not Running! (2005)
date formatting for CC card expiration date check (1998)
Snake Bites (1997)
[sendmail] v. [writefile] (2000)
Formulas.db not working (2006)