Re: Boolean Tests with dereferenced arrays are broken in
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53165
interpreted = N
texte = Looking into this now. A work around would be to use the array 'tag'instead of the arrayget context. For example....[arrayset name=test_array&dim=1](1)=[none][/arrayset][if "[test_array(1)]" = "[none]"] [then] The boolean engine works with respect to dereferenced array values.
[/then] [else]
The boolean engine is broken with respect to dereferenced arrayvalues.
[/else][/if]-----Original Message-----From: Bob Minor [mailto:bob@cybermill.com]Sent: Saturday, September 27, 2003 11:51 AMTo: WebDNA TalkSubject: Boolean Tests with dereferenced arrays are broken in WebDNA5.1dDevelopers are reporting the dereferenced arrays are broken.Here is the test results:[if "[test_var]" = "[none]"]The boolean engine works.Item 1 is [none].[if "[none]" = "[none]"]The boolean engine is broken with respect to dereferenced array values.temp_var is [none].[if "[temp_var]" = "[none]"]The boolean engine is broken with respect to dereferenced array valueseven if the value is deposited in a temporary variable.[if "[none]" = [interpret]"[none]"[/interpret]]The boolean engine is broken with respect to dereferenced array valueseven if the compared value is dereferenced by an [interpret] context.[if "[none]" = "none"]The boolean engine is broken with respect to dereferenced array valueseven if the compared value is a simple string.Here is the test:WebDNA version: [version]
[text]test_var=[none][/text][raw][if "[test_var]" = "[none]"][/raw]
[if "[test_var]" = "[none]"] [then] The boolean engine works.
[/then] [else]
The boolean engine is broken. [/else][/if][arrayset name=test_array&dim=1](1)=[none][/arrayset][arrayget name=test_array]
Item 1 is (1).
[raw][if "(1)" = "[none]"][/raw]
[if "(1)" = "[none]"] [then] The boolean engine works with respect to dereferenced arrayvalues.
[/then] [else]
The boolean engine is broken with respect to dereferencedarrayvalues.
[/else][/if][text]temp_var=(1)[/text]
temp_var is [temp_var].
[raw][if "[temp_var]" = "[none]"][/raw]
[if "[temp_var]" = "[none]"] [then] The boolean engine works with respect to dereferenced array valuesonlyif the value is deposited in a temporary variable.
[/then] [else]
The boolean engine is broken with respect to dereferencedarrayvalues even if the value is deposited in a temporary variable.
[/else][/if]
[raw][if "(1)" = [interpret]"[none]"[/interpret]][/raw]
[if "(1)" = [interpret]"[none]"[/interpret]] [then] The boolean engine works with respect to dereferenced array valuesonlyif the compared value is dereferenced by an [raw][interpret][/raw]context.
[/then] [else]
The boolean engine is broken with respect to dereferencedarrayvalues even if the compared value is dereferenced by an[raw][interpret][/raw] context.
[/else][/if]
[raw][if "(1)" = "none"][/raw]
[if "(1)" = "none"] [then] The boolean engine works with respect to dereferenced array valuesonlyif the compared value is a simple string.
[/then] [else]
The boolean engine is broken with respect to dereferencedarrayvalues even if the compared value is a simple string.
[/else][/if][/arrayget]-------------------------------------------------------------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 toWeb 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:
Looking into this now. A work around would be to use the array 'tag'instead of the arrayget context. For example....[arrayset name=test_array&dim=1](1)=[none][/arrayset][if "[test_array(1)]" = "[none]"] [then] The boolean engine works with respect to dereferenced array values.
[/then] [else] The boolean engine is broken with respect to dereferenced arrayvalues.
[/else][/if]-----Original Message-----From: Bob Minor [mailto:bob@cybermill.com]Sent: Saturday, September 27, 2003 11:51 AMTo: WebDNA TalkSubject: Boolean Tests with dereferenced arrays are broken in WebDNA5.1dDevelopers are reporting the dereferenced arrays are broken.Here is the test results:[if "[test_var]" = "[none]"]The boolean engine works.Item 1 is [none].[if "[none]" = "[none]"]The boolean engine is broken with respect to dereferenced array values.temp_var is [none].[if "[temp_var]" = "[none]"]The boolean engine is broken with respect to dereferenced array valueseven if the value is deposited in a temporary variable.[if "[none]" = [interpret]"[none]"[/interpret]]The boolean engine is broken with respect to dereferenced array valueseven if the compared value is dereferenced by an [interpret] context.[if "[none]" = "none"]The boolean engine is broken with respect to dereferenced array valueseven if the compared value is a simple string.Here is the test:WebDNA version: [version]
[text]test_var=[none][/text][raw][if "[test_var]" = "[none]"][/raw]
[if "[test_var]" = "[none]"] [then] The boolean engine works.
[/then] [else] The boolean engine is broken.
[/else][/if][arrayset name=test_array&dim=1](1)=[none][/arrayset][arrayget name=test_array]
Item 1 is (1).
[raw][if "(1)" = "[none]"][/raw]
[if "(1)" = "[none]"] [then] The boolean engine works with respect to dereferenced arrayvalues.
[/then] [else] The boolean engine is broken with respect to dereferencedarrayvalues.
[/else][/if][text]temp_var=(1)[/text]
temp_var is [temp_var].
[raw][if "[temp_var]" = "[none]"][/raw]
[if "[temp_var]" = "[none]"] [then] The boolean engine works with respect to dereferenced array valuesonlyif the value is deposited in a temporary variable.
[/then] [else] The boolean engine is broken with respect to dereferencedarrayvalues even if the value is deposited in a temporary variable.
[/else][/if]
[raw][if "(1)" = [interpret]"[none]"[/interpret]][/raw]
[if "(1)" = [interpret]"[none]"[/interpret]] [then] The boolean engine works with respect to dereferenced array valuesonlyif the compared value is dereferenced by an [raw][interpret][/raw]context.
[/then] [else] The boolean engine is broken with respect to dereferencedarrayvalues even if the compared value is dereferenced by an[raw][interpret][/raw] context.
[/else][/if]
[raw][if "(1)" = "none"][/raw]
[if "(1)" = "none"] [then] The boolean engine works with respect to dereferenced array valuesonlyif the compared value is a simple string.
[/then] [else] The boolean engine is broken with respect to dereferencedarrayvalues even if the compared value is a simple string.
[/else][/if][/arrayget]-------------------------------------------------------------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 toWeb 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/
"Scott Anderson"
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:
[middle] (2000)
RE: Error: template (1997)
New public beta available (1997)
passing search criteria (1997)
Major bug report on rootbeer (1997)
WebCatalog can't find database (1997)
WebStar 4.2 issues (2000)
[WebDNA] Apple nixes Mac OS Server ("websites") and other (2018)
Help name our technology! I found it (1997)
WC Database Format (1997)
WebCatalog 4.0.1b1 is now available (2000)
HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
Nested tags count question (1997)
[INCLUDE] Limitations (1998)
Text vs. Math (2000)
[returnraw] and form variables (1998)
Separate SSL Server (1997)
Email within tmpl ? (1997)
Starting WebCatalog on Linux (2000)
Running on Empty (1999)