If there is a value on variable, do something

I want to make like this

“myValue1” has a 0 numbers. When you go into trigger. It will add values. If “myValue1” has a value/numbers, do something

I want to do something when “myValue1” has 4 numbers

var myValue1 : int = 4;

How to make it?
I know what I should do first. Put “myValue1” variable and “int = ??;” but I don’t know if part.

[SOLVED]

var myValue1 : int = 10;

if(myValue1 == 10)
{
	//do something
}