In addition to what Alex88 said, to have a variable value immediately updated in the log, you might want to follow up the !SetVariable bang by some suited !UpdateMeasure, !UpdateMeter, !Update or !Redraw, depending on where you're using that variable further, if that's the case.
Statistics: Posted by Yincognito — Today, 2:43 pm