Closed nicolaspayette closed 9 years ago
@jbadham, maybe you'll want to use the maybe-quote
reporter in your code.
Handling lists:
xw:ask xw:widgets with [ xw:kind != "NOTE" ]
[ run (word "set " xw:key " " format xw:get xw:key)
]
to-report format [ value ]
report ifelse-value is-string? value
[ (word "\"" value "\"") ]
[ ifelse-value is-list? value
[ reduce word (sentence "[" (map format value) "]") ]
[ value ]
]
end