The SNP and Scottish Greens will now stand or fall together