Share
Go down
dainova
Active particpant
Active particpant
Posts : 19
Join date : 2012-02-23

if (storedVars['var1'] == true in Rollups? will it work

on Fri Nov 02, 2012 4:48 am
hi, all
I have this in my rollup:

Code:

commands.push({ command: 'storeTextPresent', target: 'Sign In', value: 'x' });
commands.push({ command: 'echo', target: 'Rollup:CheckSignIn. 1.User sign in = ${x}' });
this works as expected and returns true or false, depending if we already signin or sighnout
But then I'm trying to implement logic with this it never true, for me looks like $x is still not seen by rollup.
Another question: does output from rollup goes into Log? I don't see it in my case so I finish with Alert isntead, uff looks like there is no way to run rollup step by step,
even if you run all steps in IDE you still can loose something in js conversion.
Code:

 if (storedVars['x'] ==  true) {
       alert ('This is message TRUEEEEEE');
       commands.push({ command: 'open', target: '/' });
   }

THe problem that I never get into this if event having echoed in prev steps, can anabody help me how to overcome this, is this bad syntax or something???
Will js see actual storedVars so he can make desision, it doesn't complain about this if at least!!
Tx
Dai
dainova
Active particpant
Active particpant
Posts : 19
Join date : 2012-02-23

Re: if (storedVars['var1'] == true in Rollups? will it work

on Sat Nov 03, 2012 3:45 am
Yes, I just confirmed that storeText, store, storeTextPresent doesn't work from rollups to be used in IDE, as well output from Rollup doean't go into log, which make the whole idea of rollup kind of very questionable.

Tx
Dai
Back to top
Permissions in this forum:
You cannot reply to topics in this forum