Please enable JavaScript to view this site.

Gig Performer 5.x User Manual

Navigation: What is new in Gig Performer 5?

GPScript - Breaking Change

Scroll Prev Top Next More

The return value of a function can no longer be discarded and the result must either be tested or saved to a variable. For example:

Function foo(i : integer) returns boolean

 

You can no longer simply write

foo(42)

 

Instead you must either declare a boolean value into which the result is stored or test the value.

Examples:

bool someResult;

someResult = foo(42)

 
or

if foo(42)

   then ....

End