Reset bit

Discussion about Code Builder Builder and Winlog language support.
Posts: 41
Joined: Mon Jun 12, 2017 7:58 am

Reset bit

Postby yuangga23 » Tue Oct 24, 2017 3:49 am

Dear sir,
can i reset only one bit in a numeric gate?
can you give me an example if this is possible?
thanks before

User avatar
Site Admin
Posts: 343
Joined: Tue Nov 17, 2009 1:18 pm

Re: Reset bit

Postby admin » Tue Oct 24, 2017 9:23 am

Dear Sir,
yes, you can use ResetBit() function.

Code: Select all

SetNumGateValue("myNum", 0, ResetBit(GetNumGateValue("myNum", 0), 5));

Best Regards

Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest