COMPUTE does not work with operand3 #71

Closed
opened 2026-02-20 10:13:51 -05:00 by deekerman · 3 comments
Owner

Originally created by @96LawDawg on GitHub (Jan 15, 2021).

For a simple addition operation, I tried to follow the sample on the wiki.
{
"func": "COMPUTE",
"operation": "+",
"operand1": 2,
"operand2": 3,
"operand3": 3,
"variable": "result"
}

That only adds operand1 and operand2. The result is 5 when it should be 8.

Originally created by @96LawDawg on GitHub (Jan 15, 2021). For a simple addition operation, I tried to follow the sample on the wiki. { "func": "COMPUTE", "operation": "+", "operand1": 2, "operand2": 3, "operand3": 3, "variable": "result" } That only adds operand1 and operand2. The result is 5 when it should be 8.
Author
Owner

@larkob commented on GitHub (Jan 16, 2021):

The add operation only has two operands, so operand3 cannot be used. I'll try to make it more obvious in the documentation, but this is not a bug. Only slice and substr use operand3.

I've also changed the completely misleading example.

@larkob commented on GitHub (Jan 16, 2021): The add operation only has two operands, so operand3 cannot be used. I'll try to make it more obvious in the documentation, but this is not a bug. Only `slice` and `substr` use operand3. I've also changed the completely misleading example.
Author
Owner

@larkob commented on GitHub (Jan 16, 2021):

@96LawDawg Please let me know if the documentation is better now and close the issue once everything is addressed.

@larkob commented on GitHub (Jan 16, 2021): @96LawDawg Please let me know if the documentation is better now and close the issue once everything is addressed.
Author
Owner

@96LawDawg commented on GitHub (Jan 16, 2021):

That clears it up. I was wondering about operand3 when I was putting the first tutorial together, but never got around to testing it. Thanks. Issue closed.

@96LawDawg commented on GitHub (Jan 16, 2021): That clears it up. I was wondering about operand3 when I was putting the first tutorial together, but never got around to testing it. Thanks. Issue closed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/virtualtabletop#71
No description provided.