Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# if int is in range

int x = 30;

if (Enumerable.Range(1,100).Contains(x))
    //true

if (1 <= x && x <= 100)
    //true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #range
ADD COMMENT
Topic
Name
2+8 =