sometimes I want to conditionally cancel a function with an empty RETURN, and if I plan to do that, I just have to add the AS VOID to the FUNCTION at the top or else I'll get a Return error.
Ex:
FUNCTION mapScrollOne(dir) AS VOID
map = m.drAA.map
IF NOT m.mAA.flL[map.mapFl][ 1] THEN RETURN
IF map.mInvert THEN dir = oppFace(dir)
moveY = 0
moveX = 0
mSYp = map.mapScrollY
mSXp = map.mapScrollX
d = m.sy.sett.scrollSz
IF dir = 0: moveY = - d: mSYp = mSYp - d
ELSEIF dir = 1: moveX = d: mSXp = mSXp + d
ELSEIF dir = 2: moveY = d: mSYp = mSYp + d
ELSEIF dir = 3: moveX = - d: mSXp = mSXp - d
END IF
IF checkMapRoom(dir, mSYp, mSXp)
map.mapScrollY = mSYp
map.mapScrollX = mSXp
offsetMap(moveY, moveX)
playSound("menuForw", 0, 0, 0, FALSE, 1, 1)
END IF
END FUNCTION