How I can define 2 conditions with an API?

Hello I am creating a weather app I want to display different text depending on the temperature

however I don’t know how to define my double conditions

here is an example of what I want to do :

if temperature is >0 and <15 then print “it is cold”
if temperature is >15 and <30 then print “it is hot”

1 Like