Home > Backend Development > C#.Net Tutorial > what does if mean

what does if mean

藏色散人
Release: 2020-09-18 17:40:49
Original
37035 people have browsed it

The original meaning of if is "if, if". In programming languages, the if statement is used to determine whether the given conditions are met. Based on the results of the determination, the execution of the two given One of the operations, the return value of if is true or false, which can be stored in a bool variable and occupies one byte.

what does if mean

The if statement refers to a programming language (including c language, C#,, java, VB, assembly language, etc.) used to determine whether a given condition is Satisfy, decide to perform one of the two given operations based on the result of the judgment (true or false). The return value of if is true or false, which can be stored in a bool variable and occupies one byte.

Example:

C language provides two forms of if statements:

1, if (expression) statement.

if(x>y)printf("%d",x);
Copy after login

2. if (expression) statement 1 else statement 2

if(x>y)printf("%d",x);
else printf("%d",y);
Copy after login

In each statement, there can be multiple statements, but they need to be added Upper braces

if(x>y){printf("%d",x);puts("");}
Copy after login

The above is the detailed content of what does if mean. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
if
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template