if...then...else logic

The logic of if…then…else statement
if (condition) then
(execute the sentence if the condition is true)
else
(execute the sentence if the condition is False)

For example:
if (today is the weekend) then
(follow dramas and eat fried chicken)
else
(fitness and eat light food)

If today is the weekend, execute "Chase drama and eat fried chicken"
If today is Wednesday, execute "Fitness and eat light food"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324142155&siteId=291194637