This expression is incorrect. Multi-line expressions look like this:
if frame < 150:
ret = frame * 10
else:
ret = 150 * 10
See the tooltip for the “Multi-line” button:
"When checked the Python expression will be interpreted as series of statement. The return value should be then assigned to the ret variable. When unchecked the expression must not contain any new line character and the result will be interpreted from the interpretation of the single line.