Autocode bugfix for comparisons
Fix reverse order of operations for autocode custom events