If statement in Assign activity

code

#1

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


#2

See attached a=if(n1>n2, "a","b")
If.xaml (4.8 KB)


#3

thanks Mihai - that’s very useful


#4

is it possible to write for loop in assign?