How to set local variable for a specific mode?

By Anak Wannaphaschaiyong