12.07.2015 Views

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

| Binary | operators are predefined for the integraltypes and bool. For integral types, | computes thebitwise OR of its operands. For bool operands, |computes the logical OR of its operands; that is,the result is false if and only if both its operandsare false.byte a = 1;a = a | 2;(a = 3)&&The conditional-AND operator (&&) performs alogical-AND of its bool operands, but onlyevaluates its second operand if necessary.byte a = 1, b = 0;if(a == 1 && b == 0){}|| The conditional-OR operator (||) performs alogical-OR of its bool operands, but only evaluatesits second operand if necessary.byte a = 1, b = 0;if(a == 1 || b == 0){}= The assignment operator (=) stores the value of itsright-hand operand in the storage location,property, or indexer denoted by its left-handoperand and returns the value as its result. Theoperands must be of the same type (or the righthandoperand must be implicitly convertible to thetype of the left-hand operand).byte a = 1, b;b = a;+= The addition assignment operator. int a = 1;a += 2;(a = 3)-= The subtraction assignment operator. int a = 1;a -= 1;(a = 0)*= The binary multiplication assignment operator. int a = 2;a *= 5;(a = 10)/= The division assignment operator. int a = 20;a /= 5;(a = 4)%= The modulus assignment operator. int a = 20;a %=2;(a = 0)&= The AND assignment operator. byte a = 0x0f;a &= 0xf0;(a = 0)|= The OR assignment operator. byte a = 0x0f;a |= 0xf0;(a = 0xff)<strong>SiteView</strong> User’s <strong>Manual</strong> – Microedge Instruments Inc. 188/200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!