New results on value functions and applications to MaxSup and MaxInf problems