Fixed if and added bases for vConcat and vExtend
fixed if function