Re: Is [variable] a Number?
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69002
interpreted = N
texte = Clint Davis wrote:> How can I test a variable to make sure it's a number? I remember reading> something on the list some time ago, but I can't find it.Maybe an easier way:[text]ismath=no[/text][showif [url][math show=T]variabletotest[/math][/url]![url]variabletotest[/url]][text]ismath=yes[/text][/showif]This may work because one doesn't need the brackets with math vars when inside a math context.(both untested)Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
Clint Davis wrote:> How can I test a variable to make sure it's a number? I remember reading> something on the list some time ago, but I can't find it.Maybe an easier way:[text]ismath=no[/text][showif [url][math show=T]variabletotest[/math][/url]![url]variabletotest[/url]][text]ismath=yes[/text][/showif]This may work because one doesn't need the brackets with math vars when inside a math context.(both untested)Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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/
Donovan Brooke
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:
Append File help needed (2000)
WebCat2_Mac RETURNs in .db (1997)
Questions To Answer (1997)
[WebDNA] Email sending issue (2017)
ShowNext truncating passed variable?? (1997)
default value from Lookup (was Grant, please help me) (1997)
ShowIF Question (2000)
Close-to Comparison Code (1998)
WebCatalog NT beta 18 now available (1997)
[WebDNA] Triggers.db wiped completely blank (2011)
WebDNA-Talk Digest mode broken (1997)
WebCatalog NT beta 18 now available (1997)
[showif [numfound]=0]? (2000)
Emailer choke (1997)
WebCat2b12 - nesting [tags] (1997)
WebCat2b13MacPlugIn - [include] (1997)
WebCatalog complains that the service is not running. (1998)
Generating Report Totals (1997)
OT - Extract frames from GIF (2004)
WebCat2 - Getting to the browser's username/password data (1997)