Similarly named variables with underscores can take each others values?

No changes in naming conventions. Underscores, spaces and case insensitive for variables names, are still the same.
In your example, Robot Framework always see the variable as, ${commandedited2}.

2 Likes