To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE Programming Environment documentationOptional parameters

Any parameter can be optional, the only thing that must be done after that is to determine whether it has been set or not. The is_set predefined function is very useful for this purpose.

In some senses, optional paramters was a side effect of the main development of ZPE. It is useful and remains as an option in all versions.

YASS
function test($arg1, $arg2, $arg3)
  if(is_set($arg3) && is_set($arg3))
    print($arg2)
    print($arg3)
  end if
end function
  
Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.