Comment on if statement == false
adj16@lemmy.world 1 week agoBut that’s not how if statements in code work. So what you’ve said isn’t wrong, but the premise of this meme is completely off
Comment on if statement == false
adj16@lemmy.world 1 week agoBut that’s not how if statements in code work. So what you’ve said isn’t wrong, but the premise of this meme is completely off
bstix@feddit.dk 1 week ago
Yes sure. Code is logical stepwise. By including the “only if” it implies that other stuff is taken into account, which it isn’t at that moment in code.
I mean, I don’t need to extend the implications of an IF statement. It already does exactly what it says.
Anyway , “fuzzy logic” does exist for people who want “sometimes if”. It’s useful in certain cases. I’ve only ever considered it in music production, where things very often get to the point of complexity where it makes a (sometimes) useful difference.