Table of contents

Introduction

Development Environment

Web Development and Improvements in user experience

(Productivity and Enterprise-level Application Development Features)

Ajax Overview, [[21759|GeneXus' target='_blank'>Ajax' target='_blank'>Ajax Overview, [[21759|GeneXus and Ajax]]

Business Components

Business Component - Publication as an Enterprise Java Bean

Practical course: Bluesky Charters
 

Application Localization

Application Localization
Demo
Translation Tool
Help "in any language"
Practical course: Bluesky Charters
 

Patterns

About this topic
Patterns based development
Description
Built in Patterns
Work With Pattern
Demo: Work With Pattern
Practical course: Patterns
 

Better data model

Null handling optimizes navigations
Nulls property

 

User experience

New options on rightclick in win
 

Reverse Engineering

Database Reverse Engineering Tool
 

New Platforms

MySQL
.Net Mobile Generator
More J2EE support than ever
 

Data Types and Methods

Message Queue handling data types

DirectoryDataType
LDAP Data Type

URL access Property
New IIF function
New byte count function
New Methods for attributes, variables and enumerated domains!
XSLTApply Method
Procedures can now call web objects
Web Services: Grouping Locations
News about model, object, and control properties


Unofficial Content
  • This documentation is valid for:

IIF statement


Scope

Language: Java, .NET, .NET Mobile
Objects: Procedures, Transactions, Work Panels, Web Panels, Reports

Introduction


The iif function evaluates a condition and returns a value if the condition is true or another value if the condition is false. The returned value is stored either in an attribute or variable. The attribute|variable where the returned value is stored and both possible return values (specified for true and false) must have the same type.

Description


Syntax


ret-value = iif(condition, true-return-value, false-return-value)

Type Returned
The same type specified for the possible return values.

Where

Condition:
  Is the condition to be evaluated.

true-return-value
  Is the result to be returned if the condition is true.

false-return-value
  Is the result to be returned if the condition is false.

Example


// &a , &b -> numeric type
// &result  -> character
&a = 5
&b = 5
&result = iif(&a = &b, 'ok' , 'error')


The value of &result will be 'ok' because &a=b (5 = 5).

Comments & Collaboration
Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant