Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

How to test for the absence of a response in inline_javascript

Hi there,

I'm writing some inline_script code whether different things should happen depending on whether a response has been collected or not. However, I'm having some trouble working out what the condition should be set to...

I tried:

If (vars.response)=None {

If (vars.response)="None" {

If (vars.response)="" {

but to no avail...

Just wondering what the correct way is. If there isn't one in Javascript, I'll got for plan B: create two sketchpads, each with its distinct duration, and use "Run if" conditions to run one or the other depending on whether [response]=None or [response]!=None...

Any hint much appreciated! Thanks!

Fabrice.

Buy Me A Coffee

Comments

Sign In or Register to comment.