Function Sensors VEX CODE

Is necessary use a function if I need get the value of any digital in?

No, you don’t need to custom make a function. You do have to use one of the functions in the vex class of whatever digital in you are using to get the value at any time. So you have to use commands like .value()or whatever else but you do not have to write functions like

int returnBumper()

To see the complete VexCode command list, see