In the following code :
If I call the function without a first integer is it possible to test it hasn't been sent ? For example, can I do if( int1 > 0 ) ? Or will ucc fail to compile the code ? Or would this cause an error during execution ?
If the code is valid, is a default value given to int1 when I call the function without the first parameter ?
P.S: I purposefully placed an optional parameter first just in case it's a bad practise.
Code:
function( optional int1, int int2 )
{
// doblah;
}
If I call the function without a first integer is it possible to test it hasn't been sent ? For example, can I do if( int1 > 0 ) ? Or will ucc fail to compile the code ? Or would this cause an error during execution ?
If the code is valid, is a default value given to int1 when I call the function without the first parameter ?
P.S: I purposefully placed an optional parameter first just in case it's a bad practise.