Unable attach "in text" block to "Math Adddition" block to get "End Letter". I Found One Solution

Hello Everyone,

My project was to do Addition of individual Numbers. for that I need to do ‘+’ operation from the end of 2 Inputs.

I had tried to attach “in text” block into “Math” block but, it wasn’t getting attached.

Here is the Screenshot :

However, I have found a Solution for this problem.

To get the last element using “in text” block we need to follow below steps.

Steps:

  1. Create a “Function Block”.
  2. return “in text” and desired Value .
  3. create a “Function Call” Block.
  4. attach “Function Call” to the “Math” block.

Function used to return end letter as integer for my project.

Here is Screenshot of my working Project Blocks :

Thanks for viewing My post,

Regards,

Nawaz K.M

Trisha Vidya College,

Katapadi, Karnataka, India

Hi Nawaz,
Welcome to the Thunkable community. Let me make it bit clearer.
Hi @muneer @tatiang The age old +0 or x1 trick to convert a text to number does not work in this case in the “get the last text” case. That is what Nawaz was trying to solve. Then he discovered a workaround, that is doing the same thing in a function and when it returns Thunkable Math block is happy and accepts it. Button1 is the attempt to make it work and Button 2 works. Here is the link: