Initializing variable as a block in code

How can i initialize a variable as a block under an event? And how can i name a variable after get text?

use
image

thx

1 Like