Skip to content

Instantly share code, notes, and snippets.

@dileephell
Created April 23, 2018 11:59
index.js
function getNextMsgId(intent) {
console.log("Inside getNextMsgId method " + prevMsg );
for (var c in chatFlow.DataTableArray) {
console.log("1: "+String(chatFlow.DataTableArray[0][1])+" 2: "+String(prevMsg));
if (String(prevMsg) in String(chatFlow.DataTableArray.indexOf([0][1]) !== 1)) {
console.log("Inside For In Loop " + prevMsg );
console.log("Inside For In Loop" + chatFlow.DataTableArray.indexOf([0][1]));
console.log("Inside For In Loop" + chatFlow.DataTableArray[2]);
chatFlow.DataTableArray[0][4]=msg;
return chatFlow.DataTableArray[0][3];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment