Update core.lua

Added ~ to booleans.