how to return the ticker which close larger than 100

#1
The following afl is not working, where is its fault?

id = GroupID();
List = CategoryGetSymbols( categoryGroup, id);

for( i = 0; ( symbol= StrExtract( list, i ) ) != ""; i++ )
{
fc = Foreign( symbol, "C" );
if (LastValue(fc) >100){ //cannot return symobl which close price larger than 100
WriteVal(fc);

}
}