When the last word of two values equal each other

Hello I am trying to get an audio recorder to stop when the last word of it’s value equals the last word of a specific text item in a repeating group. However, when I try to type out this condition in the “only when” group it shows up red and needs me to add more. What is a way that I can accomplish this? What do I need to type into the “only when” box for it to work. Here is a picture of what I am talking about. Why is this not a complete function?


What does the error message say?

This what the error message is saying. it says it should be yes/no. here is a picture

It’s possible the ‘or’ is throwing it off. Do you have success with either statement separately without that ‘or’?

Yes both statements work individually but the thing is I need the last word from both the repeating group and the text to speech plug in value to be the same in order for it to shut off. Is there another way to do? Or am I using the wrong form?


You should be able to specify ‘last item’ on both the Plugin’s value, and the RG’s list value, in 1 condition.

Okay, Do you know a way to do that? I can try and figure it out myself but if there is a certain way you know to do that it would help me out tremendously. Just to clarify, its the last word of a text that appears in the repeating group that I am trying to located.

Your use case is pretty specific, trial and error is the best approach, but I’d try something like this:

Real-TimeSpeechToText A's Value:Split by ( ):Last Item is RepeatingGroup line's List of texts:Last Item:Split by ( ): Last Item

It won’t give me the option to split by ( ) the repeating groups text when I am already splitting the text of the real-timespeechtotext value. This was the problem I was having. As you can see there is no option here to choose split by ( ) for the repeating group. Do you know a way around this?

Yes, you can use ‘Arbitrary Text’ instead to define the word in question.

Something like this:

Real-TimeSpeechToText A's Value:Split by ( ):Last Item is Arbitrary Text

And then under Arbitrary Text:

RepeatingGroup line's List of texts:Last Item:Split by ( ): Last Item

My friend, you are the best!!! It is finally working! There are a few minor errors that have occurred now that it is working but I think I will be able to easily fix them. Thank you so much for not only taking the time to help but responding so quickly! I was trying to solve this issue for 3 days. This was my best experience using Bubble’s forum so far :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.