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

Using list variables as scalar variables #117

Closed
spooning opened this issue Jun 29, 2014 · 3 comments
Closed

Using list variables as scalar variables #117

spooning opened this issue Jun 29, 2014 · 3 comments

Comments

@spooning
Copy link
Contributor

Originally submitted to Google Code by @pekkaklarck on 29 Sep 2008

Sometimes it would be useful to be able to use a list variable so that it
would be considered a scalar variable containing a list. Possible use cases
include getting the length of the list variable using built-in 'Get Length'
keyword and modifying the list with different keywords from Collections
library.

A simple solution is using ${LIST} syntax for using @⁠{LIST} as a scalar. We
don't need to add any new syntax and this is also trivial to implement. All
that needs to be done is checking is a variable @⁠{XXX} set and returning
its value, if resolving ${YYY} fails. To make this change 100% backwards
compatible (and more logical in general), we should always return the value
of ${NAME} if it's set, regardless is @⁠{NAME} defined or not.

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by @pekkaklarck on 2 Oct 2008

Tests committed in r858 and implementation in r859. Must be documented in the user
guide still.

@spooning spooning added this to the 2.0.3 milestone Jun 29, 2014
@spooning
Copy link
Contributor Author

Originally submitted to Google Code by @pekkaklarck on 2 Oct 2008

Need to mention this also in the doc of Collections library.

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by @pekkaklarck on 9 Oct 2008

User guide changes committed in r919 and Collections changes in r923.

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