CCP 1844     

Art. 1844.  Judgment of dismissal; effect

A judgment of dismissal with or without prejudice shall be rendered and the effects thereof shall be regulated in accordance with the provisions of Articles 1671 through 1673.