Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Fool's Logic

This prompt is designed to teach you how to define and use logic in FoolScript.

Setup

In the .github/prompts folder of your project, add a new file called fools-logic.prompt.md.

Usage

Example that will use the current language:

Terminal window
#file:fools-logic.prompt.md

Example that will use Python:

Terminal window
#file:fools-logic.prompt.md Python

Prompt

Provide a quick outline on the logic structures available in the current language.
Include the following if they apply:
## If/Else statements
## Switch/Case statements
## Loops
## Error Handling
## Anything else you think is important.
Begin your response with an empty markdown block. Add 3 backticks (```) before the response. For example:
```markdown
```
Response...