Why Replace all text block not working?

Hello Everyone :grinning_face_with_smiling_eyes::smiley:
How are you…

First I’m saying a sorry :grinning_cat_with_smiling_eyes: for My Bad English :pensive_face:

==Describing the Problem :wink:==

I tried to Find YouTube Video ID from a Link…
So, I’m using Replace all block to do that…
But, It doesn’t working…

Screen Record

Aia

YouTube.aia (5.5 KB)

==Blocks Image==

Screen1

YouTube Screen

APK

YouTube.apk (5.3 MB)

(poll removed by Taifun, please only use that community feature when neessary. Thank you)
Replying :- Okay, Thanks :blush::grinning_face_with_smiling_eyes:

Because “https” also contains “http”.
Therefore it will jump to this:

Since “https://…” doesn’t contain “http://…”, it won’t replace the text.
You should check for https first before http in the if else.

1 Like

Btw, I remake your code so that it reduces the blocks. But it does the similar things: replace text and contains text.

4 Likes

Another way to find youtube id is to create a procedure like this

3 Likes

Try this and see if it works

YouTube_1.aia (5.1 KB)

1 Like

Very very Thanks @dora_paz and @WatermelonIce :grinning_face_with_smiling_eyes::wink:

@WatermelonIce I selected your method because I seem its easy…

1 Like

@WatermelonIce , Please watch this video :backhand_index_pointing_down:

I wanna to “when a user enter an invalid YouTube Link…, Then, show the error message…”

So, How to do it ?

create a new topic for it.
well u shall try if then else

How can I change a post to a new topic ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.