Having a background in computer programming I can seem to wrap my head around this one considering Apex dosent support || or && statements.

in my current state I have the Carbon doser regulator terminated in a relay port. and currently the outlet will check if carx PH is < than 6.6 and if not dose.


I would like to configure to have a dynamic PH in the calcium reactor based on weather the lights are on or off or my alk check is < 8.3? Anyone do such a program? Id imagine that virtual ports will need to be used?