Slavich
(Slava)
September 6, 2020, 9:01am
1
Hey there!
In the Assign activity the right hand box can contain a VB Expression.
I am trying to put an if statement in there … keeps on giving me an error.
It should be possible yes ? It is fundamental VB functionality … has anyone succeeded ?
Would love to know if it is possible.
Hugh
According to this post, all fit, but is it possible to do just if-then in assign? Without else.
Thanks
Srini84
(Srinivas Kadamati)
September 6, 2020, 9:39am
2
@Slavich
By VB.Net defalt, you have to give Else part, IF you don’t have else part just place “” only
but else is required
Check below IF operator syntax
if(counter="Srini","YES","")
Mark as solution if this helps
Thanks
Slavich
(Slava)
September 6, 2020, 10:46am
3
Lets say: var=if(counter=“Srini”,“YES”,“”)
In this case of else I will receive var = ". And I want to escape this.
That’s why I’m asking how to apply only if-else… If it is possible?
Srini84
(Srinivas Kadamati)
September 6, 2020, 10:49am
4
@Slavich
Yes, but that is the default one, we can’t escape that…
Hope this helps
Thanks