Project

General

Profile

Bug #808

Parameters not working properly on Instruction command with AOZ code.

Added by Brian Flanagan over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Target version:
Start date:
08/08/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Example:

Instruction "Regular Polygon", x,y,radius,sides
    startX=x
    startY=y
    Print startX,startY,radius,sides
End Instruction

Regular Polygon 100,100,50,5

The above returns:
NaN NaN undefined undefined

This bug can be circumvented by grabbing the JavaScript equivalents of the parameters:

Instruction "Regular Polygon", x,y,radius,sides
    startX = { vars.x }
    startY = { vars.y }
    radius = { vars.radius }
    sides = { vars.sides }
    Print startX,startY,radius,sides
End Instruction

Regular Polygon 100,100,50,5

...which prints the proper results:
100 100 50 5

#1

Updated by Brian Flanagan over 2 years ago

  • Priority changed from Normal to High
#2

Updated by Brian Flanagan over 2 years ago

Re-tested in 1.0.0 (B10) u16

Still fails.

#3

Updated by Brian Flanagan over 2 years ago

Now, instead of NaN, it gets Internal Error.

#4

Updated by Brian Flanagan over 2 years ago

Also... the work-around no longer works.

#5

Updated by Francois Lionet over 2 years ago

  • Assignee set to Francois Lionet

Fixed, for good this time...

#6

Updated by Brian Flanagan over 2 years ago

  • Status changed from New to Resolved
  • Target version changed from none to 1.0.0 (B10) u16

Tested in 1.0.0 (B10) u16 (9/7)
Works!

Thanks, Francois!

#7

Updated by Brian Flanagan over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF