while loop not working

Hi everyone I have a small problem with the while loop it does not loop I tried a small code to test but it seems that it does not work it ignores the condition

it returns 0 when it should stops at 1 and I even tried to deliberately set false conditions to loop indefinitely but the code ignores the condition and ends up completing the code

Hey there @Diablo1672. Welcome to the Unreal Engine forums!

This topic has been moved from International to Programming and Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help in finding an answer. In the meantime, good luck and happy developing! :slight_smile:

Hey @Diablo1672! Welcome to the forums!

You need to change your condition to NOT =1.
So the red line coming off of the ==, drag off that and type NOT! and use that! :slight_smile:

SINCERELY THANK YOU FOR YOUR HELP I TESTED WHAT YOU TOLD ME AND IT WORKED WELL :blush: :laughing:

1 Like