Skip to content
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

Consider how to create variables in user keywords eg. VAR, @{var}, &{var} #60

Open
GerwinLaagland opened this issue Mar 1, 2024 · 1 comment

Comments

@GerwinLaagland
Copy link

GerwinLaagland commented Mar 1, 2024

When creating keywords there are currently quite a lot of different ways to create variables.

In a variable section, to create a variable, a list, or a dictionary we use the following:

${var}    Variable
@{list}   1    2    3   4
&{dict}   key=value    solution=user

In user keywords there are now (with equals, because why not..

${dct}=     Create Dictionary      vs         &{dct}=     Create Dictionary
${lst}=     Create List            vs         @{lst}=      Create List  
${var}=     Set Variable

But we also have syntax VAR. and that changes things as well:

VAR    @{lst}
VAR    ${scalar}
VAR    &{dict}

Some guideline with this might be good.

@guidodemmenie guidodemmenie modified the milestone: v1.0 Sep 17, 2024
@guidodemmenie
Copy link
Collaborator

This should be covered in #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants