Ladies and Gents,
I am trying to use a string as a variable for condition detection:
if (my_condition == 'red') do_something();
What variable type do I need/can use to achieve this feat?
And in this manner, would I be able to pass this variable into a function?
??? my_string_var = 'blue';
my_function(my_string_var);
// snip
int my_function (??? my_local_var = 'some default value') {}
And, while done with that, can I output the variable contents somehow?
printf(" and the var is " + my_string_var + "!\xa");
// or I will take even
printf(my_string_var);
I figure I can use int conditions, but they would be a number and not a string.
I would also love to know if I can actually build C-style Class functionality in tmc files, but I am not holding my breath on possibility of this. =)
Thanks much.
~T