fixed a bug with the decimal separator interface, it now won't set it to an empty value if you abort out of the menu

This commit is contained in:
Augustus
2025-07-02 19:16:41 +03:00
parent 058cb2dbb7
commit 9394853c1c

View File

@@ -17,5 +17,5 @@ a comma:#var newdecchar ,|
a period:#var newdecchar .| a period:#var newdecchar .|
a custom choice:#prompt newdecchar {Please enter your custom choice} a custom choice:#prompt newdecchar {Please enter your custom choice}
}; };
#alarm 1 {#if {%length(@newdecchar)>1 OR %IsNumber(@newdecchar)=1} {#say {You really do not need a decimal seperator that is more than one character long or you have probably entered a number. Please try again.};#unvar newdecchar} {#var decchar @newdecchar; #say {Your decimal seperator has been set to @decchar}}} #alarm 1 {#if {%length(@newdecchar)>1 OR %length(@newdecchar)<1 OR %IsNumber(@newdecchar)=1} {#say {You really do not need a decimal seperator that is more or less than one character long or you have probably entered a number. Please try again.};#unvar newdecchar} {#var decchar @newdecchar; #say {Your decimal seperator has been set to @decchar};#unvar newdecchar}}
} }