SPATIUM Mobile
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     Android (3)
     Linux (1)
     MacOS (1)
     OS (1)
     Solaris10 (15)
     Windows (1)
     Windows Server (2)
     Windows XP (3)
   ID  
   Password  
  |  
  Location United States
  IP Address 3.145.186.6
2024. 05
1234
5
6
7891011
12131415161718
19202122232425
262728293031
Category  Languages, ASP
Writer 김태우 Date 2011-09-22 14:33:28 Visit 6831
ASP 기본 연산자

 

 

여러 언어를 사용할 때 기본적인 연산자를 잘못 사용하여 당황했던 경험이 있었다.

나머지를 구하거나 비교연산자에서 같이 않음을 표현하거나 연결 연산자 등...

 

아래에서는 ASP 언어에서 기본적으로 사용되는 연산자를 정리하였다.

* 산술연산자

    +, -, *, /, ^(지수), mod(나머지)

    예 )  <%    response.write (5 mod 3)    %>

* 연결연산자 , 문자열을 합치는 연산자

    &

    예 )  <%    response.write "연결문자 " & " 입니다. "    %>

* 비교연산자

    =, <, <=, <>, >, >=

    예 )  <%    if( a <> 0 ) response.write a & "는 0이 아니다"    %>

* 논리연산자

    and, or, not, xor

    예 )  <%    if(  (a > 0) and (a < 5) ) response.write a & "는 5보다 작고 0보다 크다"    %>


 

Tags  ASP, 연산자, 산술연산자, 연결연산자, 비교연산자, 논리연산자
  Relation Articles
[Languages-ASP] JSON 파일 생성 (2012-06-28 18:22:06)
[Languages-ASP] ASP 폼 Submit 시 input 태그 객체 배열 처리 (2012-06-05 11:36:06)
[Languages-ASP] ASP 날짜함수 (2012-05-31 11:34:19)
[Languages-PHP] PHP 기본연산자 (2011-12-14 18:30:50)
[Languages-ASP] SQL Injection 처리 함수(프로그램에서 처리) (2011-10-14 10:44:45)
[Languages-ASP] ASP 기본 연산자 (2011-09-22 14:33:28)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail