Hello, can you help me write a two-variable String Format?

Hello, can you help me write a two-variable String Format?

Hi @Bedirhan_Ozkan,

Try this.

String.Format("Input={0} and Output= {0}","1","2")

In your case it would be like

String.Format("UserId:{0} Password: {0}",in_strUserId,in_strPassword)

Thanks,
Ashok :slight_smile:

1 Like

Hi @Bedirhan_Ozkan

Try this

String.Format(in_Config(ā€œRequestParamā€).toString,in_strUserId,in_strPassword)

$"{var1} is {var2}"

The above is shorthand string, where var1 and var2 are variables. The string must begin with $ sign.

Exception has been thrown by the target of an invocation.

Can you please share the screenshot of the variable panel and the expression used for string

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.