TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nikunj Satasiya
194
10k
3.6m
How to Write Multiple If Condition in jQuery Template
Mar 25 2021 1:31 PM
Hi, Can anyone please help me to check multiple conditions within a single if condition in jQuery Template?
I have 2 different values that I have to compare at the same time.
Current Code:
{{
if
IsActive > 0}}
// my if block code
{{
else
}}
// my else block code
{{/
if
}}
Expected Code:
{{
if
IsActive > 0 && isMobile = 1}}
// my if block code
{{
else
}}
// my else block code
{{/
if
}}
I tried the above way but it gives an error. In about code, if
isActive > 0
and
isMobile = 1
is true Then the
code block of If
should be run else
code block of else
should be executed.
Please help me, and suggest the right way to archive this requirement.
Reply
Answers (
2
)
Selecting Only next child
using area in jquery ajax url