Bug - Not A Bug ash "contains" operator does not work for $strings

rlbond86

Member
Code:
> ash ($strings["a", "b c"] contains "a")

Returned: false


Code:
> ash boolean[string] k = $strings["a", "b c"]; (k contains "a")

Returned: false


doing it the "normal" way:

Code:
> ash boolean[string] k; k["a"] = true; k["b c"] = true; (k contains "a")

Returned: true

for comparison:

Code:
> ash ($ints[1,2,3] contains 2)

Returned: true
 

rlbond86

Member
Ok, I think I found the problem... $strings does not use quotation marks. Is there a way to use $strings with strings that have commas?
 

jasonharper

Developer
Put a backslash in front of the comma to escape it. You can also use \] to get a closing bracket in the string, or \\ for an actual backslash.
 
Top