• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

C# OR command

I am converting the following vbscript code to C#...

if I = 1 OR I > 16 then

What is the C# equivalent of OR?
0
dshinkle
Asked:
dshinkle
1 Solution
 
NetworkArchitekCommented:
so

if( (I == 1) || (I  > 16) )
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now