I would like to be able to pass extra arguments to a function and IF they are present then act accordingly (say print something out from the function), if those flags are not present, just execute the function normally without printing extra info, how would I approach this ?
Cheers
Let’s say
x,yandzare the required argruments andoptis optional:This can be called with either three or four arguments. You get the idea.