Simple problem but couldn't find a solution as tutorials seem in early stages.
I'm trying to define a function that returns something, so I assume I would do for example:
though it doesn't like this.
I also tried using the keyword
I'm sure there is an easy solution and I'm just being an idiot,
Thomas
I'm trying to define a function that returns something, so I assume I would do for example:
Code:
number func(number parameter){
return parameter;
}
number x = func(1);
though it doesn't like this.
I also tried using the keyword
function
however I got the error "Returning in void function or outside function scope" so I assumed you defined the function with its returned variable type.I'm sure there is an easy solution and I'm just being an idiot,
Thomas