The Ichimoku Cloud plots past the last bar. The script is referencing the last value of the tool, which in your screenshot the Close is below, causing the criteria to fail.
To achieve the result you are after you need to lock the Ichimoku Clouds function to the bars, so it does not go into the future.
The best way to do that is using the BARINDEX() function as per the following…
//Set Cloud Plot
V1 = ICHIMOKUCLOUD().CloudBandUpper;
//Lock Plot to Bar
V2 = BARINDEX() > 0;
V3 = IF(V2 == 1,V1,0);
//Is Close > Plot
CLOSE() > V3