
Neogirl101
USA
Asked
— Edited
Hi everyone, it's me again.
I'm sorry if this question/suggestion has been asked/made before, but I am trying to make a custom AI with EZ-Script, and I would like to know if multiplication with declared number or float variables (i.e. "num1" * "num2") is possible at all. If not, I think it would make ARC so much more flexible!
Thanks everyone for any answers you can give me.
P.S. I've heard about EZ-AI... but my AI is based on a cognitive architecture.
Of course it is possible. Don't use the " character, that denotes the data as text.
Here is a simple example I just tested.
Alan
Hooray! Thank you so much!
Now I can continue my work... And I'll be sharing it with this wonderful community for sure!
Thank you so much again!
If I may inject my 2 cents worth.
Because the type any variable can assume is fluid (any variable can be any type at any time), the way they are treated can vary depending on the operation. For example, you can actually add two literal strings together, but only in certain ways. Also they can be multiplied or divided as desired. All without Type Casting or translating them to integers first. The script operating system changes the type automatically. Some examples:
Yeah, okay, so I may be the only one who cares about such minutia, but I thought I'd share it anyway.
@WBS00001 Thanks for sharing! That's actually pretty cool. Amazing, actually!