Check string contains other string

Hi everyone, how can I check in an app that a string inserted in an input field is contained in another string?

I need this control to pass as a check for an “If”
image

You can check this way

inputText.Contains("anotherString") 

Note : - but on image wise if condition you can do like this

inputText="anotherString"

@simone.trenta

Hi @simone.trenta

  1. Insert an input field in the Default Text - MainPage.User.Value

image

  1. Click on the events and Create the Rule
    i) Use Set Value action
    ii) If else action

Regards
Gokul

@simone.trenta

This is how you can use for old app…for VB @Gokul001 has already provided

cheers

How can I use an asset instead of “FirstName”?

@simone.trenta

Just click any variable or value you want there…I have a firstname so used it

cheers

I meant an orchestrator asset, where can I find it to use on the “App Studio”?

Use this:

ourstringvariable.ToString.Contains(“your text to be found”)

I’m developing an App (by App Studio via orchestrator), not a process :slight_smile:

@simone.trenta

As of now you cannot directly get assets in apps…you need to call a process at start to read the assets and store them in app variables and use

better would be given them as values in app variables only instead

cheers

Unfortunately this solution doesn’t work :frowning:

@simone.trenta

What issue are you havign with this?

what did you try?

cheers