Please be advised: UPS Shipping will take more time to be shipped as packages need to be taken to a UPS store which is not done every day. Please select USPS for a faster shipping turnaround.
Programming: Part 2: A Method of Creating Reusable Code - Functions
Share
Similar code is put into a single function to be called by two uses. In this example, two push buttons are needed to be read (evaluated) and a set code needs to be executed when each of these push buttons are pressed and released. Since these two push buttons will perform similar actions, the code is taken into a single function to be called by each of these push button conditions. Array is used in this code.