# I need som help with a school project! it\`s my first time coding

**URL:** https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561
**Category:** flash
**Created:** [November 16, 2016, 6:02pm UTC](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561 "2016-11-16T18:02:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian\_Jessen](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Fabian\_Jessen](https://forum.kirupa.com/u/Fabian_Jessen)
#### Post date: [November 16, 2016, 6:02pm UTC](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561/1 "2016-11-16T18:02:50Z")

</div>

![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/2X/0/0fb641f6139a883607a62317ef25e16a4274a69d.PNG)

It is to make a random math problem but all that shows up is the tall1+tall2 when it should sho 2+4 or 5+6

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [November 16, 2016, 6:38pm UTC](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561/2 "2016-11-16T18:38:26Z")

</div>

When you surround text with the quote characters ("), you’re telling the code, “I want to use these exact letters and numbers and punctuation”. So by having “tall1” that is literally saying, make the text include the letters t, a, l, l, and the number 1.

When you have a variable with a value assigned to it, you use the variable name directly to get its value. No other code or symbols are needed to get it out. For the value of tall1, simply use `tall1`.

```auto
txtOppgave.text = String(tall1) + "+" + String(tall2);

```

As a number, it will have a numeric value that the `String()` conversion function can change to a string for you. But when used with a `+` and another string, it will be converted automatically making the `String()` calls redundant. So all you really need, since you have that “+” string in there (not to be confused with the `+` operator), is:

```auto
txtOppgave.text = tall1 + "+" + tall2;

```

This will resolve when obtaining the variable values to something like:

```auto
txtOppgave.text = 2 + "+" + 4;

```

Which in turn will become:

```auto
txtOppgave.text = "2+4";

```

---

<div class="post-metadata">

### Author: ![Fabian\_Jessen](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Fabian\_Jessen](https://forum.kirupa.com/u/Fabian_Jessen)
#### Post date: [November 16, 2016, 6:50pm UTC](https://forum.kirupa.com/t/i-need-som-help-with-a-school-project-it-s-my-first-time-coding/635561/3 "2016-11-16T18:50:04Z")

</div>

OK! seriously thanks so much for the help!! You may actually have saved my grade!! thanks
