I try to add a String to a list with the list.add method but the error occurs “Expression does not produce a value”.
I know it could use the add to collection activity but I want to know why it does not work with the simple add-Method. As you can see in the screens there is even a code suggestion with add but it don’t work.
Does Uipath not support that or did I something wrong?
@Akimbow
a sub (subroutine) is not returning a value (as functions are doing it). That’s why you do see the error. As nothing is returned, there is no value that can be used for the assignment.