View Single Post
Old 02-26-2011, 10:16 AM   #4
Doug-W
Member
Doug-W began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2011
Device: Nook
Thank you, that helped a lot.

I had gone over that page you linked a few dozen times while putting this together, the section on save/send templates is what gave me the idea to construct columns.

One problem though is that it doesn't help when the docs are incorrect For example the largest problem I had was that the docs say:

# test(text if not empty, text if empty) – return text if not empty if the field is not empty, otherwise return text if empty.

Not test(expression_to_test, text if not empty, text if empty) which is how it is apparently used. I thought it took the expression to the left of the test, but now that I understand a bit better I see how the left expression fits in particularly with 'program'

Final question just to be sure, does test take a regex of which a field value just happens to be a static test fed to the regex engine? If so that's kind of neat, I've been using regular expressions for 20 years, and never thought to use '.' for contains data, and '$' for always true.
Doug-W is offline   Reply With Quote