This topic is locked
[SOLVED]

Javascript if

6/12/2022 2:33:28 AM
PHPRunner General questions
A
Ace Drummond author

On ADD page using javascript OnLoad event and getting error:

"Microsoft JScript compilation error: Syntax error"

My code is :

var ctrl = Runner.getControl(pageid, 'zip');
var zip = ctrl.getValue();

if (zip <> '') { alert(zip); }

I am not a javascript expert by any means; however, the code appear valid from all my research and looking at some examples.

Can someone please point me in the right direction?
K
kohle 6/12/2022

not equal in javascript :
!=

A
Ace Drummond author 6/12/2022

Thanks that solves it for me.