24
Ustan
8y

Why do I always here beginners say "If loop"??? Where does this come from?

Comments
  • 3
    Maybe because you have something like an if in a while? ..dunno.😁
  • 6
    Welcome to devRant! That is a new one to me.
  • 8
    For loop, if loop, whatever it takes.
  • 2
    I call them 'if blocks'. Is there a proper name?
  • 1
    Probably because you learn an if before the while (Which, I assume, is the loop they are referring to, being the conditional loop) and terminology can be difficult sometimes I guess. Never heard it before though.
  • 1
    @cybojenix if clause?
  • 0
    Never heard of an "if loop" - just an "if block".

    But
    while { if(true) { } }
    works (excuse the quick formatting)
  • 3
    Conditional statement or If statement. @cybojenix
  • 0
    @cybojenix conditional statement?
  • 1
    Probably because in Java, what most beginners use, if blocks visually look the same as while/do loops. so if they don't know any better, it might be natural to say "if loops". I don't know for sure but that might be why.
  • 0
    If loop.... A single if statement in a method with recursive calls? An if statement in a while loop....
    How do u loop and if exactly...
Add Comment