Learn R Programming

exams.forge (version 1.0.10)

catif: Condition cat

Description

Calls cat if cond==TRUE.

Usage

catif(cond, ...)

condition_cat(cond, ...)

Value

Invisibly cond.

Arguments

cond

logical: condition, if true then cat is called, otherwise not

...

further parameters

Examples

Run this code
catif(TRUE, "PDF")      # Should appear
catif(FALSE, "Moodle")  # Should not appear

Run the code above in your browser using DataLab