Skip to main content
5-Regular Member
April 12, 2012
Solved

text declaration - help needed

  • April 12, 2012
  • 2 replies
  • 3489 views

Hi,

I am pretty new to this group.

I hope one of the Mathcad experts can help me.

say I have two variables with text as output

a1 = "text1"

a2 = " text2"

How can I decalre these two text variables side by side in programming

a3 = "text1" "text2" if ....

this doesnt work. is there any specific syntax to declare a1 and a2 side by side

Cheers

Best answer by Fred_Kohlhepp

Look in help, the index, under string functions.

You're looking for "concat"

2 replies

24-Ruby III
April 12, 2012

Hello!

You need to use the built-in function "if":

Pic_1.jpg

23-Emerald I
April 12, 2012

Not sure I understand what you're trying to do.

5-Regular Member
April 12, 2012

Thanks for the quick response

But that is not what I am looking for

I need an output with two text variables side-by side

say a1= "Hello"

a2 = "I am fine"

then the output should be

a3= Hello- I am fine

not just "Hello" or either "I am fine". Want both variables.

I guess there must be some syntax to declare the text variables side by side

23-Emerald I
April 12, 2012

Look in help, the index, under string functions.

You're looking for "concat"