If statement runs through whether conditions are met or not

后端 未结 4 1223
北海茫月
北海茫月 2021-01-28 17:13

My if statement runs through as if the conditions have been met even when they haven\'t. I have tried moving bits of code about and even rewriting the if statement differently b

4条回答
  •  -上瘾入骨i
    2021-01-28 17:40

    Your loop problem can be explained:

    while (continueBool = true)

    should read

    while (continueBool == true).

    As your code currently stands, you are setting it to true instead of checking for a value, so it will never exit.

提交回复
热议问题