Crystal Programming Language Reference(202107)
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

if

来源 Crystal 浏览 1 扫码 打印 2026-10-24 00:34:52
  • Control expressions - if - 《Crystal Programming Language Reference(202107)》 - 书栈网 · BookStack

Control expressions - if - 《Crystal Programming Language Reference(202107)》 - 书栈网 · BookStack

上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • Home
    • Getting started
      • An HTTP Server
      • A Command Line Application
    • Using the compiler
    • The shards command
    • Coding style
    • Platform Support
    • Governance document
  • Specification
    • About this guide
    • Comments
    • Documenting code
    • Literals
      • Nil
      • Bool
      • Integers
      • Floats
      • Char
      • String
      • Symbol
      • Array
      • Hash
      • Range
      • Regex
      • Tuple
      • NamedTuple
      • Proc
      • Command
    • Assignment
    • Local variables
    • Control expressions
      • Truthy and falsey values
      • if
        • As a suffix
        • As an expression
        • Ternary if
        • if var
        • if var.is_a?(…)
        • if var.responds_to?(…)
        • if var.nil?
        • if !
      • unless
      • case
      • while
        • break
        • next
      • until
      • &&
      • ||
    • Requiring files
    • Types and methods
      • Everything is an object
      • The Program
      • Classes and methods
        • new, initialize and allocate
        • Methods and instance variables
        • Type inference
        • Union types
        • Overloading
        • Default parameter values and named arguments
        • Splats and tuples
        • Type restrictions
        • Return types
        • Method arguments
        • Operators
        • Visibility
        • Inheritance
          • Virtual and abstract types
        • Class methods
        • Class variables
        • finalize
      • Modules
      • Generics
      • Structs
      • Constants
      • Enums
      • Blocks and Procs
        • Capturing blocks
        • Proc literal
        • Block forwarding
        • Closures
      • alias
    • Exception handling
    • Type grammar
    • Type reflection
      • is_a?
      • nil?
      • responds_to?
      • as
      • as?
      • typeof
    • Macros
      • Macro methods
      • Hooks
      • Fresh variables
    • Annotations
      • Built-in annotations
    • Low-level primitives
      • pointerof
      • sizeof
      • instance_sizeof
      • offsetof
      • Uninitialized variable declaration
    • Compile-time flags
      • Cross-compilation
    • C bindings
      • lib
      • fun
        • out
        • to_unsafe
      • struct
      • union
      • enum
      • Variables
      • Constants
      • type
      • alias
      • Callbacks
    • Unsafe code
  • Guides
    • Performance
    • Concurrency
    • Testing
    • Writing Shards
      • Hosting on GitHub
      • Hosting on GitLab
    • Continuous Integration
      • GitHub Actions
      • Travis CI
      • CircleCI
    • Static Linking
    • Database
      • Connection
      • Connection pool
      • Transactions
  • Tutorials
    • Basics
      • Hello World
      • Variables
      • Math
      • Strings
      • Control Flow
      • Methods
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度