Check out example codes for "if number negative c sharp". It will help you in understanding the concepts better.

Code Example 1

bool positive = number > 0;
bool negative = number < 0;

Learn ReactJs, React Native from akashmittal.com