Boolean Tests with dereferenced arrays are broken in WebDNA

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53164
interpreted = N
texte = Developers 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 values even if the value is deposited in a temporary variable. [if "[none]" = [interpret]"[none]"[/interpret]] The boolean engine is broken with respect to dereferenced array values even if the compared value is dereferenced by an [interpret] context. [if "[none]" = "none"] The boolean engine is broken with respect to dereferenced array values even 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 array values. [/then] [else] The boolean engine is broken with respect to dereferenced array values.
[/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 values only if the value is deposited in a temporary variable.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 values only if the compared value is dereferenced by an [raw][interpret][/raw] context.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 values only if the compared value is a simple string.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Boolean Tests with dereferenced arrays are broken in WebDNA ( Bob Minor 2003)
Developers 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 values even if the value is deposited in a temporary variable. [if "[none]" = [interpret]"[none]"[/interpret]] The boolean engine is broken with respect to dereferenced array values even if the compared value is dereferenced by an [interpret] context. [if "[none]" = "none"] The boolean engine is broken with respect to dereferenced array values even 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 array values. [/then] [else] The boolean engine is broken with respect to dereferenced array values.
[/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 values only if the value is deposited in a temporary variable.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 values only if the compared value is dereferenced by an [raw][interpret][/raw] context.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 values only if the compared value is a simple string.
[/then] [else] The boolean engine is broken with respect to dereferenced array values 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 to Web Archive of this list is at: http://webdna.smithmicro.com/ Bob Minor

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:

WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Setting up shop (1997) autosensing lanague selection (1997) (2000) Chat (2000) MATH (1998) SKU lookup (1997) PCS Frames (1997) Possible Bug in 2.0b15.acgi (1997) [LOOKUP] (1997) Emailer setup (1997) File commands and Wild Cards ?? (1998) Beta 18 (1997) WebCat2 - [format thousands] (1997) How to Display text in empty fields (1997) Database alias & long filename question (2001) Cookies and WebCat?? (1999) flushdatabases (1997) So many lookers, hey smith micro (2003) problems with 2 tags shakur (1997)