Scripting Kiwi SysLog VisualBasic

I am currently working on a script in VB for reporting and was wondering if its possible to use conditional statements in the built in scripting engine

Current script in progress and error.