/    Sign up×
Community /Pin to ProfileBookmark

Compare table value!!

For table “User”
ID NAME AGE
1 Rick 28
2 Raj 30
3 Lucku 35

if(_condition(_getCellText(_cell(_table(“User”), 1, 4)) == “30”))
_alert(“Age is correct”);
else
_
alert(“Wrong Age!”);

HI all,
Is my code correct??.
I tried using this Code, to verify whether Name “Ricky” is equal to the age 30, using my code it should fail saying “Wrong Age”, as Ricky’s age is 28.
Can anybody guide me about this!!

Thanks in Advance
shekar ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@MongusNov 21.2006 — Either that's not JavaScript or you're using libraries you haven't mentioned.
Copy linkTweet thisAlerts:
@idealoneauthorNov 21.2006 — Yes its a Javascript used for Sahi Automated tool.

Quote from sahi person

"

_getCellText(_cell(_table("SaleQut"), 1, 4)) is page dependent. It is

true (most probably) on only one of the pages which the test spans. So

it cannot be used outside of a scheduler function.

A condition which is page dependent needs to be enclosed in a
_condition() function.

_condition is really a marker for Sahi to say that execute this
condition only when its turn comes.

"

Its Javascript for Sahi Tool. Iam not sure if its entirely different from normal Javascript, As iam new to it. ?

cheers

Shekar
×

Success!

Help @idealone spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...