An alternative in VB.NET is to cast the boolean directly to an integer. The only drawback of this is that it will convert a
into -1 due to how the bits operate in a signed integer. However you can mitigate this by doing something like:
However don't be afraid to create conditional blocks if it's what you think you need for readability and maintenance, some people will push for the most minimal code you can but in reality sometimes it's better to have things laid out in a way that is more readable.