On–off switching and molecular logic in fluorescent molecules are associated with what chemical inputs can do to the structure and dynamics of these molecules. Herein, we report the structure of a naphthalene derivative, the fashion of its binding to β-cyclodextrin and DNA, and the operation of logic possible using protons, cyclodextrin, and DNA as chemical inputs. The compound crystallizes out in a keto-amine form, with intramolecular N−H⋅⋅⋅O bonding. It shows stepwise formation of 1:1 and 1:2 inclusion complexes with β-cyclodextrin. The aminopentenone substituents are encapsulated by β-cyclodextrin, leaving out the naphthalene rings free. The binding constant of the β-cyclodextrin complex is 512 m−1. The pKa value of the guest molecule is not greatly affected by the complexation. Dual input logic operations, based on various chemical inputs, lead to the possibility of several molecular logic gates, namely NOR, XOR, NAND, and Buffer. Such chemical inputs on the naphthalene derivative are examples of how variable signal outputs based on binding can be derived, which, in turn, are dependent on the size and shape of the molecule.