Skip to content

[ENHANCEMENT] Support for assigning variables with item values #439

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

Open
d-biehl opened this issue May 9, 2025 · 0 comments
Open

[ENHANCEMENT] Support for assigning variables with item values #439

d-biehl opened this issue May 9, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@d-biehl
Copy link
Member

d-biehl commented May 9, 2025

see here

*** Test Cases ***
Item assignment to list
    ${list} =          Create List      one    two    three    four
    ${list}[0] =       Set Variable     first
    ${list}[${1}] =    Set Variable     second
    ${list}[2:3] =     Evaluate         ['third']
    ${list}[-1] =      Set Variable     last
    Log Many           @{list}          # Logs 'first', 'second', 'third' and 'last'

Item assignment to dictionary
    ${dict} =                Create Dictionary    first_name=unknown
    ${dict}[first_name] =    Set Variable         John
    ${dict}[last_name] =     Set Variable         Doe
    Log                      ${dictionary}        # Logs {'first_name': 'John', 'last_name': 'Doe'}
@d-biehl d-biehl added the enhancement New feature or request label May 9, 2025
@d-biehl d-biehl self-assigned this May 9, 2025
@d-biehl d-biehl added this to RobotCode May 9, 2025
@d-biehl d-biehl moved this to In progress in RobotCode May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant