Is it possible? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 10

Is it possible?

Can i make a condition in which it checks if the given var(data) is more than 18 and less than 24 in a single condition and returns the statement (eligible,you can fill the form)? How? https://code.sololearn.com/WGuvb13tqrCi/?ref=app

18th Sep 2020, 2:51 PM
‎Ashwin Maurya
‎Ashwin Maurya - avatar
3 Réponses
+ 7
by using AND operator (&&) age > 18 && age < 24
18th Sep 2020, 2:53 PM
Gordon
Gordon - avatar
+ 3
Gordon It worked , I totally missed this point ,while working on it , though i have just learned it😂😂 Thanks
18th Sep 2020, 2:56 PM
‎Ashwin Maurya
‎Ashwin Maurya - avatar
+ 3
Yes
12th Oct 2020, 6:06 AM
Rajesh
Rajesh - avatar