If with load of a return value into a variable Ensure you enclose the assignment in brackets or it won’t work correctly if ((MyVariable = SomeFunction()) > -1) { //MyVariable contains the return value }