I'm still create a HTML document that will send as email. I want to insert a javascript condition to check an attribute. I try like below code but failed
If it's an HTML document you cannot insert Javascript there. But you can insert conditional expressions using Rule Language (referred objects must be in Context):
<<IF Object.Attribute='abc' THEN SHOW SECTION_START>>
HTML code
<<SECTION_END>>