Peter-MedEng
2015-08-06 07:07:11 UTC
How can I make a function with variable input? I seen non-user defined functions where it works with 1, 2 or more inputs
for example function1(input1, input2, input3), function1(input1). If i don't type in all input in user defined functions I get an error :/ but sometimes I don't need all inputs.
2.
How can i make a user defined function with the input being automatically detected as a string or int. For example I don't want
function1(int input1, string input2) but function1(input1 OR input2).
thanks for help in advance ^^