• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 190

Backtrace:

File: /home/stackhow/public_html/application/views/question.php
Line: 190
Function: _error_handler

File: /home/stackhow/public_html/application/controllers/Questions.php
Line: 420
Function: view

File: /home/stackhow/public_html/index.php
Line: 317
Function: require_once

name Punditsdkoslkdosdkoskdo

swiftの文法について質問

var stringValue : String = "hogehoge"
var ret1 = stringValue == "hogehoge" ? "a" : "b" // ret1 = "a"
var ret2 = stringValue == "Hogehoge" ? "a" : "b" // ret2 = "b"

これはなんですか? どの様な意味ですか?

 

var stringValue : String = "hogehoge" var ret1 = stringValue == "hogehoge" ? "a" : "b" // ret1 = "a" var ret2 = stringValue == "Hogehoge" ? "a" : "b" // ret2 = "b"