I have a collection with 2 columns and i will like to compare values in my textinput control to column A of my collection and where macthed replace textinput.text value with value from column B of my collection
This is my code but it returns multiple lines of my text input and replaces them on a row bases. I will like to have just one text output with the acroymns replaced with their meaning - i.e. column 2 of my collection
ClearCollect(CollectParam,Acronyms);
ClearCollect(testA,Split(TextInput2.Text," "));
Clear(subTest);
ForAll(testA,ForAll(CollectParam,If(Value = Acronym,Collect(subTest,{Test:Substitute(TextInput2.Text,Value,Meaning)}))));
sample input and output
input

Output

i will like to have just one line of text - "Good morning do you need Accounts and Markets and Accelerating Audit Execution today?"