API.setVariable : accept case without source variable