-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting value of variable #3
Comments
This issue is related to the math expression parsing library I am using on this plugin |
Hi sir,,in the repository arithm exp in readme there is this code I think for allow to add variables $expression = $parser->parse("x + y");
var_dump($expression->evaluate(["x" => 2, "y" => 3])); // int(5)
var_dump($expression->evaluate(["x" => 1.5, "y" => 1.5])); // float(3) |
It doesn't work as you think. |
@NhanAZ I mean equation substitution, equation solver will different thing yes If I will give equation If I will give equation But it will also be good to have equation solver but my intend here was variable substitution |
Why don't you use something like this?
|
After about 2 years I realized my question was stupid :D |
Hi this request for adding variable support to plugin
When user types expression sender can set value of variable:
For this cyou can use await-std to be done easy (code adapted from https://github.com/SOF3/await-std-examples/blob/master/BanHammer/src/SOFe/BanHammer/Main.php)
The text was updated successfully, but these errors were encountered: