I am having issue with this simple if :)
iimPlay('CODE:'+'SET !TIMEOUT_STEP 0'+'\nTAG POS=1 TYPE=TD ATTR=txt:*<SP>VLAN EXTRACT=txt');
var WELCOME = iimGetLastExtract(1)
alert(WELCOME);
if(WELCOME == ' Tunnel VLAN' || WELCOME == ' Service VLAN ')
{
alert('GOOD');
}
else
{
alert('BAD');
}
It is working for this one ' Service VLAN ' I am getting GOOD
<td style="outline: 1px solid blue;" class="data_nocolor_left" nowrap=""> Service VLAN </td>
It is not working for this one ' Tunnel VLAN' I am getting BAD
<td style="outline: 1px solid blue;" class="data_nocolor_left" nowrap=""> Tunnel VLAN</td>
I already tried to play with spaces. I already copied extract from alert and it is still not working.
I can't remove from that Tunnel VLAN...
So there should be some way how to do it :)
I was thinking about wildcards but I haven't found anything.
Thanks to all for help.
Aucun commentaire:
Enregistrer un commentaire