-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Unlike what the wiki says at Example 1 being shown using @if. The function command doesn't support, @if``` statements. It just outputs blank. The @ifstatement doesn't work at all in@function. Even if using the example shown in the [wiki](https://github.com/Nxium-Developments/NextLanguage/blob/main/NextLanguage-Source/documentation/syntaxes/Modules.md#if-statement) it too still doesn't work. Due to :call`` not actually calling the function.
To note. What the wiki says on how @functions and @if statements are structured are entirely wrong, as of v1.8's release. the @function and @if statements are structured like what I did below.
Otherwise, it will just execute all the code structure, written below the function command without a @end command to end the function. And because of this bug here, it doesn't even output or run any more code other than 1 line of code.
It will also not run any @if statements or @var commands due to the executeFunction.js module, only registering @output commands.
@var [x]: (integer)9
@function [hello]:
@if [x > 10]:
:output This is a if statement, if X is greater than 10. You will see this message!
:end
@else
:output Sadly, you changed this value (x). So you couldn't see the message I wrote for you :d
:end
@end
@end