add conditiondemo code