more flexible IF expression

Added "ELSE" section, and extended comparing attributes.
Added ASP (vbscript) and SQL function templates
added text