#Break probelms

1 messages · Page 1 of 1 (latest)

safe vigil
#

i want to break if rthe sum of the list is less than 0 but it doesnt let me

river mortarBOT
#

<@&987246883653156906> please have a look, thanks.

oak seal
#

ur outside of ur loop already

#

check ur }

#

or did u intend to "break" the method?

#

like ending the program in this case

#

that's done with return;

#

break is for ending loops, not methods

safe vigil
#

ah yes i had to put retunr thank u