Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (33 loc) · 2.81 KB

cp.rx.go.If.Then.md

File metadata and controls

43 lines (33 loc) · 2.81 KB

docs » cp.rx.go.If.Then


A Statement.Modifier that defines what happens when an If matches.

Submodules

API Overview

  • Constants - Useful values which cannot be changed
  • Then
  • Methods - API calls which can only be made on an object returned by a constructor
  • Otherwise
  • Then

API Documentation

Constants

Signature cp.rx.go.If.Then <cp.rx.go.Statement.Modifier>
Type Constant
Description This is a configuration of If, which should be created via If:Then(...).

Methods

Signature cp.rx.go.If.Then:Otherwise(...) -> If.Then.Otherwise
Type Method
Description Call this to define what will happen if value doesn't resolve successfully.
Parameters
  • ... - The list of resolveable values to process for the unsuccessful If result.
Returns
  • The Then Statement.Modifier.
Signature cp.rx.go.If.Then:Then(...) -> If.Then
Type Method
Description Each Then can have a subsequent Then which will be executed after the previous one resolves.
Parameters
  • ... - The list of resolvable values to process for the sucessful If result.
Returns