subtledoctor Posted September 8, 2018 Share Posted September 8, 2018 Simple, almost silly question: In a typical function like ALTER_EFFECT or something, I always see and write it like this: LPF FUNC_TION INT_VAR variable = # STR_VAR string = ~text~ END Can the INT_VAR and STR_VAR be reversed? Does it matter? Can I do LPF FUNC_TION STR_VAR string = ~text~ INT_VAR variable = # END ? Quote Link to comment
Jarno Mikkola Posted September 8, 2018 Share Posted September 8, 2018 I don't see any problems with this. Quote Link to comment
argent77 Posted September 8, 2018 Share Posted September 8, 2018 (edited) Order of parameter types for both DEFINE_(ACTION|PATCH)_FUNCTION and LAUNCH_(ACTION|PATCH)_FUNCTION is fixed at INT_VAR -> STR_VAR -> RET -> RET_ARRAY. Changing order will trigger a syntax error. See WeiDU Documentation for more details. Edit: You can specify the parameters themselves within a section in any order though. Edited September 8, 2018 by argent77 Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.