@testaccount789@sh.itjust.works
Post #2736817
2026-05-21 11:15 UTC
I tested it, it works as it is.
#include
#include
void main(){
bool true_or_false = true;
if(true_or_false){
goto if_true;
}
printf("This code runs only if false.\n");
goto end_false_if;
if_true:
printf("This code runs only if true.\n");
end_false_if:
printf("This code always runs.\n");
}
If true, it jumps to if_true, then runs other code. If false, the if gets skipped, if false code gets run, then it skips over if true code.
Replies (1)
-
@lukstru@piefed.social 2026-05-21 11:34
I totally did the thing where I commented without reading properly before. Sorry!