title: Use function to write down variable name in Arduino
body: <p>I have a script in Arduino that'll get a letter, and to make things as short a possible I'd like to use a string combined with another variable to get the variable name I need to fill in into the function.</p>
  
  <p>I'd like this because I have a function <code>mySwitch.send(Int, 24)</code>. For the first <code>Int</code> variable I need to to send a number that is dependent on the letter I sent, and on the current value of <code>A_stat</code>, I defined these values in variables A_aan, A_uit, B_aan, B_uit, etc.</p>
  
  <p>For example for the letter A I need to fill in the variable <code>A_aan</code> if <code>a_stat == 0</code>. If <code>a_stat == 1</code> it needs to fill in <code>A_off</code>.</p>
  
  <p>For B I need to fill in the variable <code>B_aan</code> if <code>b_stat == 0</code>, and I need to fill in the variable name <code>B_uit</code> on the place of Int if <code>b_stat == 1</code>.</p>