AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Power of Comparators in Conditional Statements
There's an or and comparator where like, if this statement and this statement are equal, then the if statement is okay. So there's multiple different ways and multiple different combinations. You can use them to kind of limit the amount of code you need to write to do these conditional statements. And again, with more complex programs, you're going to end up using comparators all the time for that type of thing. It'll take the decision making game to a whole new height because you're not just limited to like, Oh, like, If the number is this, if the number is that.