Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:07,070 --> 00:00:07,480
Hey there.
2
00:00:07,490 --> 00:00:08,660
Welcome back, friends.
3
00:00:08,670 --> 00:00:14,160
From today, we will start exploring the function related tags which are available under GST.
4
00:00:14,180 --> 00:00:21,410
L Notice if I show you this particular article, we have the tag clips available for GST l function
5
00:00:21,410 --> 00:00:23,270
tags as well in here.
6
00:00:23,270 --> 00:00:28,190
So let me copy this part and now let me paste this part in here.
7
00:00:28,760 --> 00:00:34,550
Now again, we will also make use of the code tags so we will keep this particular tag lib in here.
8
00:00:34,760 --> 00:00:35,420
All right.
9
00:00:35,810 --> 00:00:43,160
Now, moving forward, for example, in here, I type in F and colon and then try to autocomplete as
10
00:00:43,160 --> 00:00:44,810
the prefix is a fin.
11
00:00:45,500 --> 00:00:48,800
Somehow you won't be able to get any proposals.
12
00:00:48,920 --> 00:00:55,370
The reason is, when it comes to function tags, the way of using the function tags is a little different.
13
00:00:55,490 --> 00:00:57,080
Let me show you in here.
14
00:00:57,560 --> 00:01:01,040
In order to make use of function tags, we need to take care of POS.
15
00:01:01,580 --> 00:01:03,380
Yes, you have guessed it right.
16
00:01:03,800 --> 00:01:06,230
We need to take help of expression language.
17
00:01:06,620 --> 00:01:12,590
So now they will type in FN colon and try to autocomplete and we would be able to see the list of all
18
00:01:12,590 --> 00:01:18,440
the functions which are available to us now for example, to start with, to be checking the length
19
00:01:18,440 --> 00:01:18,860
tag.
20
00:01:18,860 --> 00:01:20,960
Then we have this function.
21
00:01:21,260 --> 00:01:25,400
Now the reason why it is called as function tags, the reason is very simple.
22
00:01:25,430 --> 00:01:29,960
All of these attributes, all of these tags and nothing but functions.
23
00:01:30,890 --> 00:01:35,240
So in here the length is a function and it requires a parameter.
24
00:01:35,510 --> 00:01:39,500
The parameter could be a string or it could be also object.
25
00:01:39,500 --> 00:01:45,220
So in here, the start of it, we will add in a very simple string which would be like straight, easy
26
00:01:45,230 --> 00:01:46,340
dot or t.
27
00:01:46,640 --> 00:01:48,530
Let me see if the changes and the know.
28
00:01:48,920 --> 00:01:55,760
If I execute this program, I execute this GSP file, then it will counted the number of characters
29
00:01:55,760 --> 00:01:59,000
in this string and it will return the count.
30
00:01:59,390 --> 00:02:01,790
And in total there are 13 characters.
31
00:02:01,910 --> 00:02:06,710
So definitely the output should be 13 and here is the output as expected.
32
00:02:07,460 --> 00:02:14,030
Now moving forward, let us also check whether this led the method is capable of giving us the length
33
00:02:14,030 --> 00:02:18,890
of an object, the number of objects available in a complex object.
34
00:02:19,670 --> 00:02:27,050
So in order to test this, we will make use of a script let so any and this is complete.
35
00:02:27,050 --> 00:02:31,820
We will definitely make use of r A-D and the type of that.
36
00:02:31,820 --> 00:02:38,300
It would be a string area and we will give the name as a names and let us initialize this at a real
37
00:02:38,300 --> 00:02:38,660
quick.
38
00:02:40,190 --> 00:02:42,320
So the first name could be my name.
39
00:02:43,130 --> 00:02:46,880
Second name could be a generic name, for example.
40
00:02:46,880 --> 00:02:52,700
John And finally the third name could be any name, for example.
41
00:02:53,210 --> 00:02:56,690
Adila All right, so this looks good to me.
42
00:02:57,200 --> 00:03:00,740
Then moving forward, let us try to read the information.
43
00:03:00,740 --> 00:03:03,680
Let us try to read the length of this.
44
00:03:03,680 --> 00:03:10,430
Eddy So in here, if I try to panic, you read the information which is bad in this area by putting
45
00:03:10,430 --> 00:03:18,200
in the name of this area as the names, then somehow the output would be correct and output would be
46
00:03:18,200 --> 00:03:18,590
zero.
47
00:03:18,860 --> 00:03:24,260
But the reason why we are getting this as zero, because we are not able to read the information properly
48
00:03:24,260 --> 00:03:26,270
inside this land method.
49
00:03:26,510 --> 00:03:28,160
Now the solution is very simple.
50
00:03:28,160 --> 00:03:29,000
Let me show you.
51
00:03:29,030 --> 00:03:30,140
Let me expand this.
52
00:03:30,560 --> 00:03:36,410
So in here we will make use of a code tag and the code tiger's set tag.
53
00:03:36,590 --> 00:03:39,650
So we will, first of all, create a variable.
54
00:03:40,040 --> 00:03:40,820
Let me show you.
55
00:03:41,330 --> 00:03:44,330
And it could be a self-contained tag as well.
56
00:03:44,840 --> 00:03:50,090
And in here, first thing would be giving the name of this variable.
57
00:03:50,120 --> 00:03:53,480
The name of the variable could be like names Eddie.
58
00:03:54,320 --> 00:03:56,750
And then we will give the value.
59
00:03:57,500 --> 00:04:05,570
Value would be nothing but the Eddie now in here in order to read Eddie from a script, definitely we
60
00:04:05,570 --> 00:04:11,720
will make use of expression element and we will give the variable name as names.
61
00:04:11,750 --> 00:04:18,860
And finally, for value, give this newly created variable name in here and now a word.
62
00:04:18,860 --> 00:04:20,390
Work should be done.
63
00:04:20,390 --> 00:04:21,170
And in here.
64
00:04:21,380 --> 00:04:22,490
Now it should be No.
65
00:04:22,580 --> 00:04:22,910
Three.
66
00:04:23,330 --> 00:04:23,990
Perfect.
67
00:04:23,990 --> 00:04:24,800
Fantastic.
68
00:04:25,100 --> 00:04:30,290
So this is how we can look at the length of any complex object.
69
00:04:30,290 --> 00:04:34,520
And reading a length of and a string is rather very simple.
70
00:04:34,760 --> 00:04:35,270
All right.
71
00:04:35,270 --> 00:04:36,920
So this is it for today's video.
72
00:04:36,920 --> 00:04:38,120
I hope you guys enjoyed it.
73
00:04:38,180 --> 00:04:39,170
Thanks for watching.
6262
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.