/    Sign up×
Community /Pin to ProfileBookmark

Need a super simple math script

Hi all,

I’m clueless about javascript but I needed a real simple script that will check if a # (currency) is equal or great then another # (currency). If it’s equal or greater, display a certain string of text, if it’s less then it displays a different string of text + the difference between those two numbers.

The application and example would be.

(if less then 99) You are only $23.44 away from being eligible for free shipping!
(if equal or great then 99) You are eligible for free shipping!

I appreciate the help!

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @hlcno 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.23,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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