Skip to content

If Statements in VG Language

Used to execute code conditionally.

if (x > 10) {
    print("x is greater than 10");
} else {
    print("x is 10 or less");
}