Menu

if

BalinKingOfMoria

The if command compares two variables to each other using an equality/inequality specified by the user. If the comparison returns true, the console will output 1. Otherwise, it will output 0.

Syntax:
if <first condition name> is/isn't/</> <second condition name>

For example:
int a = 5
int b = 5
if a is b

Console output:
1 (true)


Related

Wiki: Commands

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.