No idea how I missed this but there is a property called AvailableDevices which, obviously, does exactly what I need. For future reference, this is how I have it set up.
In OnStart, I have the following
Set(
cameraIndex,
Min(
Camera1.AvailableDevices,
Id
)
)
I have two buttons on the camera screen with OnSelect the following
Set( //Decreases cameraIndex variable by 1 to minimum available value
cameraIndex,
Max(
Min(
Camera1.AvailableDevices,
Id
),
cameraIndex -1
)
)
Set( //Increases cameraIndex variable by 1 to max available value
cameraIndex,
Min(
Max(
Camera1.AvailableDevices,
Id
),
cameraIndex +1
)
)
And Camera1.Camera is set to cameraIndex