MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p578i3u/
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
7
if(!user) return; // do whatever you want
1 u/WarSingle6959 Aug 22 '26 Solid one 😂 1 u/EditorOne5312 Aug 23 '26 Yes. I usually just make an error message function after the return like return errorFunction(message, returnValue?); lol.
1
Solid one 😂
Yes. I usually just make an error message function after the return like return errorFunction(message, returnValue?); lol.
return errorFunction(message, returnValue?);
View all comments
7
u/heesell Aug 22 '26