?. and ?() null-conditional operators in uipath

Hello,

Someone could say me why my null-conditional operators doesn’t works :

BR,

Z

@Zoul Can you tell me Why are you using the ? :sweat_smile:

Hi @Zoul

U should use like != or equals

Thanks
Ashwin S

@supermanPunch :

https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/operators/null-conditional-operators

@AshwinS2 : I think we dont talk about the same thing but thank you for your help

@Zoul But that’s Ohk That Synatx is Of Vb.net but UiPath basically accepts c# form of Syntax, If you want to use VBA in UiPath you can use Invoke Code Activity, But i don; think that is what you need :sweat_smile:

1 Like

I dont understand, my exemple is a VBA operator and dont exist in VB.net !? This is a very usefull operator, It have something like that in VB.net ?

just use the regular condition like:
IF LstPatternFounded IsNot Nothing AndAlso LstPatternFounded = True

And if you want to ask for this to be implemented, please go here:
https://forum.uipath.com/c/user-voice/activities/127

1 Like

What is the better solution between :

and

IF LstPatternFounded IsNot Nothing AndAlso LstPatternFounded = True

i think you understand you cant use null conditional operators in there right?