Account for variables when making a comparison for priority-based command selection