I'm trying to program an Arduino..... In VBA (Visual Basic for Applications), one can write:
Select Case Range("B5").Value
Case Is > 1000
Dim DrawDownVolume As Integer
DrawDownVolume = 275 + DrugVolume - 315
Range("E14") = "PHARMACIST: Draw out " & DrawDownVolume & " mL from 250 mL bag before adding elotuzumab."
Range("B6").Value = 315
Case Is < 1000
'Continue as normal - see below
Range("E14") = ""
Range("B6").Value = 275 + DrugVolume
Case Else
'Do nothing
End Select
But I see no way of doing this in C++. Can someone point out how this is done? Basically I want to pass a variable through an evaluation event (<, >, !=, etc) with a constant or another variable:
Case Is > TimeStamp
Any help would be greatly appreciated. On-line, I only see switch statements and no select statements talked about.