Cyanoacetohydrazide is a versatile reagent as it contains five different functional groups ( cyano, active methylene, carbonyl, amido and hydrazino groups ) . Some of them could act as a nucleophile or as an electrophile. Also they could act in pairs as a bidentate reagent affording several probabilities . the predominance of which depends on the reaction conditions and the other reactants.