Baseline code for checking value and using it